https://kotlinlang.org logo
c

claudiug

10/07/2017, 3:56 PM
Copy code
class MainView: View() {
    override val root = Pane()
    
    init {
        with(root) {
            prefHeight(800.0)
            prefHeight(600.0)
            if (true) {
                replaceWith(LoginController::class)
            } else {
                replaceWith(RegisterController::class)
            }
        }
    }
}