Thanks - Part one works perfectly :heart: Still ha...
# tornadofx
n
Thanks - Part one works perfectly ❤️ Still have a little problem with a ConcurrentModificationException...
Copy code
import tornadofx.*

class Test : App(TestView::class)

class TestView : View() {
    val tabpane = tabpane {
        tab(TestWizard::class)
    }
    override val root = pane {
        add(tabpane)
    }

    fun closeTabs() {
        tabpane.tabs.forEach { it.close() }
    }
}

class TestWizard : Wizard() {
    init {
        add(TestWizard1::class)
    }

    override fun onSave() {
        find(TestView::class).closeTabs()
    }

}

class TestWizard1 : View("Test") {
    override val root = pane {}
}
Problem is my stupid
tabpane.tabs.forEach { it.close() }
- ... sometimes brain is afk 🙂