Results 1 to 2 of 2

Thread: Color in Java

  1. #1
    Join Date
    Oct 2011
    Posts
    23
    Rep Power
    0

    Default Color in Java

    Hello,

    I have String strColor = red

    i want to use it as setForeground(Color.strColor)

    How can i use it....i know we can use i as setForeground(Color.red)

    thanks in advance..

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. extracting color from an image in java
    By sarah49 in forum New To Java
    Replies: 4
    Last Post: 09-18-2012, 02:22 PM
  2. Replies: 3
    Last Post: 12-03-2011, 01:38 PM
  3. [COLOR="Navy"]execute .bat file in mysql [/COLOR]
    By msankar.ravi in forum Networking
    Replies: 0
    Last Post: 02-24-2010, 04:27 AM
  4. Adding color to a java applet?
    By soc86 in forum Java Applets
    Replies: 2
    Last Post: 11-02-2008, 04:14 PM
  5. Replies: 4
    Last Post: 09-13-2008, 11:07 AM

Posting Permissions

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