From f74cd282da1f14bc3d2d768b2f68b8f6d6429e68 Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Tue, 12 May 2015 18:16:39 +0200 Subject: Initial commit --- src/de/fhswf/in/inf/UpnFx/MainApp.java | 50 ++++++++++++++++++ src/de/fhswf/in/inf/UpnFx/view/MainView.fxml | 61 ++++++++++++++++++++++ .../in/inf/UpnFx/view/MainViewController.java | 28 ++++++++++ 3 files changed, 139 insertions(+) create mode 100644 src/de/fhswf/in/inf/UpnFx/MainApp.java create mode 100644 src/de/fhswf/in/inf/UpnFx/view/MainView.fxml create mode 100644 src/de/fhswf/in/inf/UpnFx/view/MainViewController.java (limited to 'src/de/fhswf/in/inf') diff --git a/src/de/fhswf/in/inf/UpnFx/MainApp.java b/src/de/fhswf/in/inf/UpnFx/MainApp.java new file mode 100644 index 0000000..5d5e049 --- /dev/null +++ b/src/de/fhswf/in/inf/UpnFx/MainApp.java @@ -0,0 +1,50 @@ +package de.fhswf.in.inf.UpnFx; + +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Scene; +import javafx.scene.layout.AnchorPane; +import javafx.stage.Stage; + +/** + * This is the starting point for the application. + * + * @author Stefan Suhren + * @version 1.0 + */ +public class MainApp extends Application +{ + /* + * (non-Javadoc) + * + * @see javafx.application.Application#start(javafx.stage.Stage) + */ + @Override + public void start(Stage primaryStage) + { + try + { + AnchorPane apane = FXMLLoader.load(MainApp.class + .getResource("view/MainView.fxml")); + Scene scene = new Scene(apane); + primaryStage.setScene(scene); + primaryStage.setTitle("UpnFx"); + primaryStage.show(); + } + catch (Exception e) + { + e.printStackTrace(); + } + } + + /** + * The main function. + * + * @param args + * The command line arguments + */ + public static void main(String[] args) + { + launch(args); + } +} diff --git a/src/de/fhswf/in/inf/UpnFx/view/MainView.fxml b/src/de/fhswf/in/inf/UpnFx/view/MainView.fxml new file mode 100644 index 0000000..449cc4e --- /dev/null +++ b/src/de/fhswf/in/inf/UpnFx/view/MainView.fxml @@ -0,0 +1,61 @@ + + + + + + + + + + + + +