I think this is what you are looking for???
The values, (0, 51, 255) are integer values representing the rgb values
JohnB
//~ Formatted by jFormat�2003 EMail:
jlbalder@netscape.net 2003.07.24
...previous code
public void midAction() {
// This method changes the color of the currently focused shape
// from blue to red, red to green, and green to blue
Color currentColor;
Color
ROSE = new Color(255, 0, 51);//Colors NOT accurate!
Color FROG = new Color(0, 255, 51);
Color NAVY = new Color(0, 51, 255);
currentColor = currentShape.getColor();
if(currentColor.equals(Color.green)) currentShape.setColor(NAVY);
else if(currentColor.equals(Color.red)) currentShape.setColor(FROG);
else if(currentColor.equals(Color.blue)) currentShape.setColor(ROSE);
// Repaint the window to show the change
win.repaint();
}//~public void midAction()...
more code...