JColor Applet.

This applet is an attempt to port the colour.exe program to Java. JColorApplet is a color chooser. Part of the code was from ColorSelect.java in the CoreJava book which implemented basically the same functionality as colour.exe. Most of the work done was to convert the Frame application to an applet which uses a dialog box and in making the layout look right. A tip for those who are layering and compositing with panels - extend Panel and override the getPreferredSize method so that the layout manager doesn't squash your panels. The difference between colour.exe and JColor is the ability of colour.exe to capture the pixel color of any spot on the screen. I do not think Java has this capability yet.

Here are the sources to the applet.

JColorApplet.java

JColorDialog.java - this also compiles to a stand alone application.