App.kt 824 Bytes
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)
        }
    }

}