How can I show a dialog from my controller? ```cla...
# tornadofx
d
How can I show a dialog from my controller?
Copy code
class MainScreenSelect : View("tool") {

    override val root = vbox {
        dialog("dialog") {
        }
    }
}
This does work and I can create my dialog, but I can't show a dialog from my controller with the vbox as parameter
Copy code
fun showDialog(pane: VBox){
    pane.apply {
        dialog{
        }
    }
}
This does not work, I can't call the dialog there, but i can call any other components. Where is my mistake? And how can I create a Dialog from outside my view?