Robert Jaros
fun TabPanel.activate(component: Component) { val index = getComponentIndex(component) if (index >= 0) activeIndex = index }