From 183c670bf3ffdca7e3cc918471c811814b415a37 Mon Sep 17 00:00:00 2001 From: Ivan Olexyn Date: Sat, 7 Mar 2020 03:30:22 +0100 Subject: [PATCH] Resolve errors. --- .../olexyn/ensync/{ui => }/Controller.java | 2 +- src/com/olexyn/ensync/Main.java | 26 ++- src/com/olexyn/ensync/layout.fxml | 124 ++++++++++++ src/com/olexyn/ensync/ui/UI.java | 32 ---- src/com/olexyn/ensync/ui/layout.fxml | 177 ------------------ 5 files changed, 147 insertions(+), 214 deletions(-) rename src/com/olexyn/ensync/{ui => }/Controller.java (99%) create mode 100644 src/com/olexyn/ensync/layout.fxml delete mode 100644 src/com/olexyn/ensync/ui/UI.java delete mode 100644 src/com/olexyn/ensync/ui/layout.fxml diff --git a/src/com/olexyn/ensync/ui/Controller.java b/src/com/olexyn/ensync/Controller.java similarity index 99% rename from src/com/olexyn/ensync/ui/Controller.java rename to src/com/olexyn/ensync/Controller.java index 404e8f1..507055f 100644 --- a/src/com/olexyn/ensync/ui/Controller.java +++ b/src/com/olexyn/ensync/Controller.java @@ -1,4 +1,4 @@ -package com.olexyn.ensync.ui; +package com.olexyn.ensync; import javafx.concurrent.Task; diff --git a/src/com/olexyn/ensync/Main.java b/src/com/olexyn/ensync/Main.java index a6f00b1..b9f5a44 100644 --- a/src/com/olexyn/ensync/Main.java +++ b/src/com/olexyn/ensync/Main.java @@ -1,16 +1,34 @@ package com.olexyn.ensync; +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; +import javafx.scene.Scene; +import javafx.stage.Stage; -public class Main { +public class Main extends Application { + - public static void main(String[] args) { - new Flow().start(); + @Override + public void start(Stage primaryStage) throws Exception { + Parent root = FXMLLoader.load(getClass().getResource("layout.fxml")); + Scene scene = new Scene(root, 430, 500); - } + primaryStage.setTitle("mucc"); + primaryStage.setScene(scene); + primaryStage.show(); } + + + + public static void main(String[] args) { + launch(args); + + } +} diff --git a/src/com/olexyn/ensync/layout.fxml b/src/com/olexyn/ensync/layout.fxml new file mode 100644 index 0000000..28b57c3 --- /dev/null +++ b/src/com/olexyn/ensync/layout.fxml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - -