Results 1 to 6 of 6
Like Tree2Likes
  • 1 Post By wsaryada
  • 1 Post By DarrylBurke

Thread: Colors in Java

  1. #1
    jamesallen4u is offline Banned
    Join Date
    Jun 2012
    Posts
    4
    Rep Power
    0

    Question Colors in Java

    Hello Everyone,

    I am new to the Java language, but not programming in general. I have programmed in C/C++ and in both languages, a programmer can create a method to change the color of text. I was looking through the API and I did find plenty of Color classes, but I do not know where to begin with this. If anyone can point me to the right direction or give me an example, I would appreciate it greatly. Thank you.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

    Default Re: Colors in Java

    change the color of text
    Change the color of the text in what? A Swing component? An image? A webpage?

  3. #3
    jamesallen4u is offline Banned
    Join Date
    Jun 2012
    Posts
    4
    Rep Power
    0

    Default Re: Colors in Java

    Quote Originally Posted by doWhile View Post
    Change the color of the text in what? A Swing component? An image? A webpage?
    A basic console app, such as a "Hello World" program.

  4. #4
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Location
    Bali, Indonesia
    Posts
    760
    Rep Power
    8

    Default Re: Colors in Java

    You could try jlibs library. I haven't tried it myself thought but it says in the website that it has capability for coloring in a console application. Here is the link: jlibs - Common Utilities for Java - Google Project Hosting
    jamesallen4u likes this.

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,423
    Rep Power
    20

    Default Re: Colors in Java

    Any efforts spent to learn how to colorize console output would IMO be better invested in learning GUI programming.
    Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials)

    db
    jamesallen4u likes this.
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  6. #6
    jamesallen4u is offline Banned
    Join Date
    Jun 2012
    Posts
    4
    Rep Power
    0

    Default Re: Colors in Java

    Thank you all for your replies, I will keep your suggestions in mind.

Similar Threads

  1. Java Draw with multiple colors
    By java25 in forum New To Java
    Replies: 4
    Last Post: 12-08-2011, 06:03 PM
  2. How do i add colors
    By ytrewqc in forum New To Java
    Replies: 1
    Last Post: 11-01-2011, 03:15 PM
  3. Animation with colors
    By musico in forum New To Java
    Replies: 2
    Last Post: 05-28-2011, 09:07 PM
  4. Convert 24 bit colors to 16 bit
    By i4ba1 in forum Advanced Java
    Replies: 2
    Last Post: 12-09-2010, 02:23 AM
  5. In Case You Want Colors!
    By angryboy in forum Forum Lobby
    Replies: 0
    Last Post: 08-29-2009, 11:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •