Color newColor = JColorChooser.showDialog(null, colorTitleString, getColor());
Color newColor = ColorChooser.getColor(colorTitleString, getColor());
public void actionPerformed(ActionEvent event){	String action = event.getActionCommand();	if(action.equals(colorString))	{		Color newColor = JColorChooser.showDialog(null, colorTitleString, getColor());				if(newColor != null)		{			setColor(newColor);			currentColor = newColor;		}				CommandManager.getInstance().execute("RepaintWorkspace");	}	else if(action.equals(dashedString))	{		dashed = !dashed;		currentDashed = dashed;		CommandManager.getInstance().execute("RepaintWorkspace");	}	else if(action.equals(startArrowString))	{		startArrow = !startArrow;		currentStartArrow = startArrow;		CommandManager.getInstance().execute("RepaintWorkspace");	}	else if(action.equals(endArrowString))	{		endArrow = !endArrow;		currentEndArrow = endArrow;		CommandManager.getInstance().execute("RepaintWorkspace");	}}