From d9741fc7a21272da080eec1361ab0a906b409cee Mon Sep 17 00:00:00 2001 From: pp Date: Mon, 11 Oct 2021 13:04:20 +0200 Subject: [PATCH] =?UTF-8?q?A=20Hanoi=20tornyai=20projekt=20indul=C3=B3=20?= =?UTF-8?q?=C3=A1llapota.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .classpath | 15 +++++++++++++++ .gitignore | 1 + .project | 23 +++++++++++++++++++++++ .settings/org.eclipse.jdt.core.prefs | 14 ++++++++++++++ build.fxbuild | 8 ++++++++ src/hanoi/Foablak.fxml | 7 +++++++ src/hanoi/FoablakController.java | 5 +++++ src/hanoi/Main.java | 27 +++++++++++++++++++++++++++ src/hanoi/application.css | 1 + src/module-info.java | 6 ++++++ 10 files changed, 107 insertions(+) create mode 100644 .classpath create mode 100644 .gitignore create mode 100644 .project create mode 100644 .settings/org.eclipse.jdt.core.prefs create mode 100644 build.fxbuild create mode 100644 src/hanoi/Foablak.fxml create mode 100644 src/hanoi/FoablakController.java create mode 100644 src/hanoi/Main.java create mode 100644 src/hanoi/application.css create mode 100644 src/module-info.java diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..1a89da5 --- /dev/null +++ b/.classpath @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ae3c172 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bin/ diff --git a/.project b/.project new file mode 100644 index 0000000..47b60b8 --- /dev/null +++ b/.project @@ -0,0 +1,23 @@ + + + HanoiTornyai + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.xtext.ui.shared.xtextBuilder + + + + + + org.eclipse.xtext.ui.shared.xtextNature + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..8aabe8d --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=16 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=16 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=16 diff --git a/build.fxbuild b/build.fxbuild new file mode 100644 index 0000000..122ee8f --- /dev/null +++ b/build.fxbuild @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/hanoi/Foablak.fxml b/src/hanoi/Foablak.fxml new file mode 100644 index 0000000..4c72ce8 --- /dev/null +++ b/src/hanoi/Foablak.fxml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/hanoi/FoablakController.java b/src/hanoi/FoablakController.java new file mode 100644 index 0000000..b5b5bc7 --- /dev/null +++ b/src/hanoi/FoablakController.java @@ -0,0 +1,5 @@ +package hanoi; + +public class FoablakController { + +} diff --git a/src/hanoi/Main.java b/src/hanoi/Main.java new file mode 100644 index 0000000..6b30c4c --- /dev/null +++ b/src/hanoi/Main.java @@ -0,0 +1,27 @@ +package hanoi; + +import javafx.application.Application; +import javafx.stage.Stage; +import javafx.scene.Scene; +import javafx.scene.layout.BorderPane; +import javafx.fxml.FXMLLoader; + + +public class Main extends Application { + @Override + public void start(Stage primaryStage) { + try { + BorderPane root = (BorderPane)FXMLLoader.load(getClass().getResource("Foablak.fxml")); + Scene scene = new Scene(root,400,400); + scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm()); + primaryStage.setScene(scene); + primaryStage.show(); + } catch(Exception e) { + e.printStackTrace(); + } + } + + public static void main(String[] args) { + launch(args); + } +} diff --git a/src/hanoi/application.css b/src/hanoi/application.css new file mode 100644 index 0000000..83d6f33 --- /dev/null +++ b/src/hanoi/application.css @@ -0,0 +1 @@ +/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */ \ No newline at end of file diff --git a/src/module-info.java b/src/module-info.java new file mode 100644 index 0000000..667bdc6 --- /dev/null +++ b/src/module-info.java @@ -0,0 +1,6 @@ +module HanoiTornyai { + requires javafx.controls; + requires javafx.fxml; + + opens hanoi to javafx.graphics, javafx.fxml; +}