Click to See Complete Forum and Search --> : Adding Customised Color Palette in an Applet


krishnendra
February 5th, 2003, 06:45 AM
I am Making a java Applet which has a circle drawn ,now i want that the user should be able to fill color inside it by mouse Click from a given set of colors generated in the applet and subsequently their color information is being stored in an array..How should i go about it?? Kindly help me out. you may please notify me at krish_nandi@yahoo.com

dlorde
February 5th, 2003, 08:15 AM
Why not use JColorChooser (http://java.sun.com/j2se/1.4.1/docs/api/javax/swing/JColorChooser.html) ?

The Java Tutorial tells you how to use it: How to Use Color Choosers (http://java.sun.com/docs/books/tutorial/uiswing/components/colorchooser.html).

Homer, that's the worst thing you've ever done!
Oh Marge, you say that so often it's lost all meaning...