Have selectedIndex refer to all defined tabs and fix more of tabtext

Translate between selectedIndex tipi side and selectedIndex JTabbedPane
side