public void setActiveTab(int index) { var tab = tabs[index]; if (tab != currentTab) { _tabTable.clear(); _tabTable.add(tab).left().top().fill().expand(); tabButtons[index].toggleOn(); var i = tabs.IndexOf(currentTab); tabButtons[i].toggleOff(); currentTab = tab; } }