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
Views: 3
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 = "NavKTools"
  5.         primaryStage?.scene = Scene(root)
  6.         primaryStage?.show()
  7.     }
  8.  
  9. //    companion object {
  10. //        @JvmStatic
  11. //        fun main(args: Array<String>) {
  12. //            launch(StartUI::class.java)
  13. //        }
  14. //    }
  15. }
  16.  
  17. fun main(args: Array<String>) {
  18.     Application.launch(StartUI::class.java, *args)
  19. }