commit d9741fc7a21272da080eec1361ab0a906b409cee Author: pp Date: Mon Oct 11 13:04:20 2021 +0200 A Hanoi tornyai projekt induló állapota. 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; +}