@Override
	public void actionPerformed(ActionEvent e) {
		boolean global = tb.getSelected();
		boolean state = this.selected;
		boolean result = false;
		if (!global)
		{
			tb.setSelected();
			this.setSelected(true);
			result = true;
		}
		else
		{
			if (state)
			{
				this.setSelected(false);
				tb.setSelected();
				result = false;
			}
			else
			{
				ToolBarComponent[] temp = tb.getTbc();
				for (int i = 0; i < temp.length; i++)
				{
					temp[i].setSelected(false);
					temp[i].selected = false;
				}
				this.setSelected(true);
				result = true;
			}
		}
		sfap.hand = result ? this.getId() : 0;	
		sfap.objSize = new Dimension(1, 1);
		this.selected = result;
	}