comp.update();
comp.update();*/
	public void removeBufferTab(Buffer buffer)	{		int index = buffers.indexOf(buffer);		int selectedIndex = getSelectedIndex();		buffers.removeElementAt(index);		removeTabAt(index);		if(index < selectedIndex)		{			if(selectedIndex != 0)				selectedIndex--;			setSelectedIndex(selectedIndex);		}		else if(index == selectedIndex)		{			Magic comp = (Magic)getSelectedComponent();			if(comp != null)				comp.update();		}	}