TornadoFX filechooser
TornadoFX filechooser I am looking solution for javafx FileChooser (in Kotlin). I stuck on this, I cannot pass root View, because Window! is expected: FileChooser Window! button("open some file") { setOnAction { val fileChooser = FileChooser(); val file = fileChooser.showOpenDialog(???) ... } } What should I pass in this case? Although Ruckus gave you the correct answer below (use the chooseFile and chooseDirectory functions in TornadoFX), I just wanted to point out that you can access the stage via the primaryStage property. If your View is opened using openModal or openWindow you can access your stage via the modalStage property of the View . Stage inherits from Window . – Edvin Syse Nov 22 '16 at 8:19 ...