setSelectedIndex(buffer.getIndex());
int index = buffer.getIndex(); int selectedIndex = getSelectedIndex(); if(index == selectedIndex) ((Magic)getSelectedComponent()).update(); else setSelectedIndex(buffer.getIndex());
	public void selectBufferTab(Buffer buffer)	{		setSelectedIndex(buffer.getIndex());	}