package application import javafx.application.Application import javafx.fxml.FXMLLoader import javafx.scene.Parent import javafx.scene.Scene import javafx.stage.Stage import jfxtras.styles.jmetro.JMetro import jfxtras.styles.jmetro.Style class App : Application() { var style : Style = Style.LIGHT override fun start(primaryStage: Stage?) { val fxmlLoader = FXMLLoader(App::class.java.getResource("/gui/windows.fxml")) val parent: Parent = fxmlLoader.load() val scene = Scene(parent) JMetro(scene, style) primaryStage!!.scene = scene primaryStage.title = "Maritime Visualisation" primaryStage.show() } companion object { @JvmStatic fun main(args: Array) { launch(App::class.java) } } }