aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Creating Color object using color name as String Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Creating Color object using color name as String" Watch "Creating Color object using color name as String" New topic
Author

Creating Color object using color name as String

lakshmana dhanimireddi
Greenhorn

Joined: Jul 05, 2011
Posts: 18

Hi, Can we create a Color object using color name as String?

Thanks.
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4530
    
    5

Not with the standard Java SE API, no. But you can easily write a method that accepts a String parameter and returns a Color.


luck, db
There are no new questions, but there may be new answers.
 
jQuery in Action, 2nd edition
 
subject: Creating Color object using color name as String