// ===========================================================================//	ColorChoice.java	1996 Yushin Hozumi All rights reserved.//						Author:Yushin Hozumi// ===========================================================================package	StudioRAIN.MMI.ColorPicker;import StudioRAIN.MMI.ColorPicker.*;import java.awt.*;public class ColorChoice extends ColorPicker{    public ColorChoice()    {		super( Color.red );		Choice theChoice = new Choice();		theChoice.addItem("black");		theChoice.addItem("blue");		theChoice.addItem("cyan");		theChoice.addItem("darkGray");		theChoice.addItem("gray");		theChoice.addItem("green");		theChoice.addItem("lightGray");		theChoice.addItem("magenta");		theChoice.addItem("orange");		theChoice.addItem("pink");		theChoice.addItem("red");		theChoice.addItem("white");		theChoice.addItem("yellow");		add( theChoice );    }    public boolean action( Event ev, Object arg )    {		if( ev.target instanceof Choice )		{		    if( "black".equals( arg ) )				changeColor( Color.black );		    else if( "blue".equals( arg ) )				changeColor( Color.blue );		    else if( "cyan".equals( arg ) )				changeColor( Color.cyan );		    else if( "darkGray".equals( arg ) )				changeColor( Color.darkGray );		    else if( "gray".equals( arg ) )				changeColor( Color.gray );		    else if( "green".equals( arg ) )				changeColor( Color.green );		    else if( "lightGray".equals( arg ) )				changeColor( Color.lightGray );		    else if( "magenta".equals( arg ) )				changeColor( Color.magenta );		    else if( "orange".equals( arg ) )				changeColor( Color.orange );		    else if( "pink".equals( arg ) )				changeColor( Color.pink );		    else if( "red".equals( arg ) )				changeColor( Color.red );		    else if( "white".equals( arg ) )				changeColor( Color.white );		    else if( "yellow".equals( arg ) )				changeColor( Color.yellow );		}		return true;    }}