if(index <= selectedIndex)
if(getComponentCount() != 1 && index <= selectedIndex)
	public void addBufferTab(Buffer buffer)	{		int index = buffer.getIndex();		int selectedIndex = getSelectedIndex();		buffers.insertElementAt(buffer,index);		insertTab(buffer.getName(),getIcon(buffer),			new Magic(buffer),buffer.getPath(),			index);		if(index <= selectedIndex)		{			selectedIndex++;			setSelectedIndex(selectedIndex);		}	}