// ===========================================================================//	ColorCheck.java	1996 Yushin Hozumi All rights reserved.//						Author:Yushin Hozumi// ===========================================================================package	StudioRAIN.MMI.ColorPicker;import StudioRAIN.MMI.ColorPicker.*;import java.awt.*;public class ColorCheck extends ColorPicker{    public ColorCheck()    {		super( Color.red );		setLayout( new GridLayout( 3, 5 ) );		CheckboxGroup theGroup = new CheckboxGroup();		Checkbox theBox;		add( theBox = new Checkbox( null, theGroup, false ) );		theBox.setBackground( Color.black );		add( theBox = new Checkbox( null, theGroup, false ) );		theBox.setBackground( Color.darkGray );		add( theBox = new Checkbox( null, theGroup, false ) );		theBox.setBackground( Color.gray );		add( theBox = new Checkbox( null, theGroup, false ) );		theBox.setBackground( Color.lightGray );		add( theBox = new Checkbox( null, theGroup, false ) );		theBox.setBackground( Color.white );		add( theBox = new Checkbox( null, theGroup, true ) );		theBox.setBackground( Color.red );		add( theBox = new Checkbox( null, theGroup, false ) );		theBox.setBackground( Color.magenta );		add( theBox = new Checkbox( null, theGroup, false ) );		theBox.setBackground( Color.pink );		add( theBox = new Checkbox( null, theGroup, false ) );		theBox.setBackground( Color.orange );		add( theBox = new Checkbox( null, theGroup, false ) );		theBox.setBackground( Color.yellow );		add( theBox = new Checkbox( null, theGroup, false ) );		theBox.setBackground( Color.blue );		add( theBox = new Checkbox( null, theGroup, false ) );		theBox.setBackground( Color.cyan );		add( theBox = new Checkbox( null, theGroup, false ) );		theBox.setBackground( Color.green );    }    public boolean action( Event ev, Object arg )    {		if( ev.target instanceof Checkbox )	    	changeColor( ( ( Component )ev.target ).getBackground() );		return true;    }}