Blame view
src/main/kotlin/application/App.kt
824 Bytes
2f45c53df skeleton for user... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
package application import javafx.application.Application import javafx.fxml.FXMLLoader import javafx.scene.Parent import javafx.scene.Scene import javafx.stage.Stage class App : Application() { override fun start(primaryStage: Stage?) { val fxmlLoader = FXMLLoader(App::class.java.getResource("/gui/mainApp.fxml")) val parent: Parent = fxmlLoader.load() // val controller: MainAppController = fxmlLoader.getController() val scene = Scene(parent) primaryStage!!.scene = scene primaryStage.title = "Maritime Visualisation" primaryStage.width = 667.0 primaryStage.height = 375.0 primaryStage.show() } companion object { @JvmStatic fun main(args: Array<String>) { launch(App::class.java) } } } |