public void setSelectedColor(int button, Color c)
		{
		switch (button)
			{
			case MouseEvent.BUTTON1:
				setLeft(c);
				return;
			case MouseEvent.BUTTON3:
				setRight(c);
				return;
			default:
				if ((button & (MouseEvent.BUTTON1_MASK | MouseEvent.BUTTON1_DOWN_MASK)) != 0) setLeft(c);
				if ((button & (MouseEvent.BUTTON3_MASK | MouseEvent.BUTTON3_DOWN_MASK)) != 0) setRight(c);
			}
		}