Open Martmists-GH opened 2 months ago
Code:
class MainApplication : Application() { override fun start(stage: Stage) { val root = DetachableTabPane() val scene = Scene(root) (0..3).forEach { root.tabs.add(DetachableTab("Tab $it").apply { content = Text("Content $it") }) } stage.scene = scene stage.show() } }
After playing around with it a bit, the application somehow ended up like this:
After experimenting for a bit, it seems to be caused by moving the topmost/leftmost tab of a row/column.
Please try to set the DetachableTabPane.setCloseIfEmpty(true).
DetachableTabPane.setCloseIfEmpty(true)
Code:
After playing around with it a bit, the application somehow ended up like this: