App.kt
679 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/windows.fxml"))
val parent: Parent = fxmlLoader.load()
val scene = Scene(parent)
primaryStage!!.scene = scene
primaryStage.title = "Maritime Visualisation"
primaryStage.show()
}
companion object {
@JvmStatic
fun main(args: Array<String>) {
launch(App::class.java)
}
}
}