finally
else if(index == selectedIndex)
	public void removeBufferTab(Buffer buffer)	{		int index = buffers.indexOf(buffer);		int selectedIndex = getSelectedIndex();		try		{			removing = true;			buffers.removeElementAt(index);			removeTabAt(index);			if(index < selectedIndex)			{				if(selectedIndex != 0)					selectedIndex--;				setSelectedIndex(selectedIndex);			}			if(getTabCount() != 0)			{				setComponentAt(0,textArea);				textArea.setVisible(true);			}		}		finally		{			removing = false;		}	}