From 0b173a68dd961d691422ad481a1e1b1631b80100 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 31 Jul 2017 16:50:39 -0700 Subject: [PATCH] Add FXML loading application. --- .../nwapw/abacus/fx/AbacusApplication.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/main/java/org/nwapw/abacus/fx/AbacusApplication.java diff --git a/src/main/java/org/nwapw/abacus/fx/AbacusApplication.java b/src/main/java/org/nwapw/abacus/fx/AbacusApplication.java new file mode 100644 index 0000000..3f86fdd --- /dev/null +++ b/src/main/java/org/nwapw/abacus/fx/AbacusApplication.java @@ -0,0 +1,20 @@ +package org.nwapw.abacus.fx; + +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; +import javafx.scene.Scene; +import javafx.stage.Stage; + +public class AbacusApplication extends Application { + + @Override + public void start(Stage primaryStage) throws Exception { + Parent parent = FXMLLoader.load(getClass().getResource("/abacus.fxml")); + Scene mainScene = new Scene(parent, 320, 480); + primaryStage.setScene(mainScene); + primaryStage.setTitle("Abacus"); + primaryStage.show(); + } + +}