Hi all, Is it possible to create a color object based on the following color data. #e0e0ff
The above code is defines a particular color or does the code have to consist of all integers ie. (255,143,223). I would like the user to enter the color via a similar code and to create a background color based on what they have entered. Thank you for your help.
All you'd have to do is remove the '#' from the front and pass it through Integer.parseInt( colorString, 16 ). Color has a constructor that will take the result of this and translate it to the appropriate color, so all you'll really have to do is :
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.