From 386a9fa7c5a74653920cade0830c8b937f2f4cd6 Mon Sep 17 00:00:00 2001 From: Mateusz Kowalczyk Date: Sat, 23 Nov 2019 08:58:49 +0100 Subject: [PATCH] Init project --- .gitignore | 1 + ftp_project.iml | 12 ++++++++++++ src/sample/Controller.java | 4 ++++ src/sample/Main.java | 23 +++++++++++++++++++++++ src/sample/sample.fxml | 8 ++++++++ 5 files changed, 48 insertions(+) create mode 100644 .gitignore create mode 100644 ftp_project.iml create mode 100644 src/sample/Controller.java create mode 100644 src/sample/Main.java create mode 100644 src/sample/sample.fxml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/ftp_project.iml b/ftp_project.iml new file mode 100644 index 0000000..d5c0743 --- /dev/null +++ b/ftp_project.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/src/sample/Controller.java b/src/sample/Controller.java new file mode 100644 index 0000000..54e5bd1 --- /dev/null +++ b/src/sample/Controller.java @@ -0,0 +1,4 @@ +package sample; + +public class Controller { +} diff --git a/src/sample/Main.java b/src/sample/Main.java new file mode 100644 index 0000000..5333744 --- /dev/null +++ b/src/sample/Main.java @@ -0,0 +1,23 @@ +package sample; + +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Parent; +import javafx.scene.Scene; +import javafx.stage.Stage; + +public class Main extends Application { + + @Override + public void start(Stage primaryStage) throws Exception{ + Parent root = FXMLLoader.load(getClass().getResource("sample.fxml")); + primaryStage.setTitle("Hello World"); + primaryStage.setScene(new Scene(root, 300, 275)); + primaryStage.show(); + } + + + public static void main(String[] args) { + launch(args); + } +} diff --git a/src/sample/sample.fxml b/src/sample/sample.fxml new file mode 100644 index 0000000..363237a --- /dev/null +++ b/src/sample/sample.fxml @@ -0,0 +1,8 @@ + + + + + + + \ No newline at end of file