aboutsummaryrefslogtreecommitdiff
path: root/app/bin/main/xyz/brysonsteck/serverfordummies/App.kt
diff options
context:
space:
mode:
Diffstat (limited to 'app/bin/main/xyz/brysonsteck/serverfordummies/App.kt')
-rw-r--r--app/bin/main/xyz/brysonsteck/serverfordummies/App.kt30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/bin/main/xyz/brysonsteck/serverfordummies/App.kt b/app/bin/main/xyz/brysonsteck/serverfordummies/App.kt
new file mode 100644
index 0000000..0547a8f
--- /dev/null
+++ b/app/bin/main/xyz/brysonsteck/serverfordummies/App.kt
@@ -0,0 +1,30 @@
+/*
+ * This Kotlin source file was generated by the Gradle 'init' task.
+ */
+package xyz.brysonsteck.serverfordummies
+
+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(stage: Stage) {
+ var scene = Scene(loadFXML("primary"), 1500.0, 900.0)
+ stage.title = "Server For Dummies"
+ stage.scene = scene
+ stage.show()
+ }
+
+ private fun loadFXML(fxml: String) : Parent {
+ val fxmlLoader = FXMLLoader(this.javaClass.getResource(fxml + ".fxml"))
+ return fxmlLoader.load()
+ }
+
+ public fun run() {
+ launch()
+ }
+
+}