Blame view
src/main/kotlin/application/App.kt
811 Bytes
2f45c53df skeleton for user... |
1 2 3 4 5 6 7 |
package application import javafx.application.Application import javafx.fxml.FXMLLoader import javafx.scene.Parent import javafx.scene.Scene import javafx.stage.Stage |
52321443a different color f... |
8 9 |
import jfxtras.styles.jmetro.JMetro import jfxtras.styles.jmetro.Style |
2f45c53df skeleton for user... |
10 11 |
class App : Application() { |
52321443a different color f... |
12 |
var style : Style = Style.LIGHT |
2f45c53df skeleton for user... |
13 14 |
override fun start(primaryStage: Stage?) { |
b350f9dfe import vessels an... |
15 16 |
val fxmlLoader = FXMLLoader(App::class.java.getResource("/gui/windows.fxml")) val parent: Parent = fxmlLoader.load() |
2f45c53df skeleton for user... |
17 |
val scene = Scene(parent) |
52321443a different color f... |
18 |
JMetro(scene, style) |
2f45c53df skeleton for user... |
19 20 |
primaryStage!!.scene = scene primaryStage.title = "Maritime Visualisation" |
2f45c53df skeleton for user... |
21 22 23 24 25 26 27 28 29 30 31 |
primaryStage.show() } companion object { @JvmStatic fun main(args: Array<String>) { launch(App::class.java) } } } |