public Color getSelectedColor(int button)
		{
		switch (button)
			{
			case MouseEvent.BUTTON1:
				return left;
			case MouseEvent.BUTTON3:
				return right;
			default:
				if ((button & (MouseEvent.BUTTON1_MASK | MouseEvent.BUTTON1_DOWN_MASK)) != 0) return left;
				if ((button & (MouseEvent.BUTTON3_MASK | MouseEvent.BUTTON3_DOWN_MASK)) != 0) return right;
				return null;
			}
		}