Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: usere4d07
Added: Oct 9, 2019 5:59 AM
Modified: Nov 7, 2020 1:30 PM
Views: 150
Tags: no tags
  1. class StartUI : Application() {
  2.     override fun start(primaryStage: Stage) {
  3.         val root = FXMLLoader.load<Parent>(javaClass.getResource("/ui.fxml"))
  4.         primaryStage.title = "Fire System List Creator"
  5.         primaryStage.scene = Scene(root, 1024.0, 768.0)
  6.         primaryStage.isResizable = false
  7.         primaryStage.show()
  8.     }
  9.  
  10.     fun start() {
  11.         launch(StartUI::class.java)
  12.     }
  13. }
  14.  
  15. fun main() {
  16.     StartUI().start()
  17. }