A Hanoi tornyai projekt induló állapota.

This commit is contained in:
pp
2021-10-11 13:04:20 +02:00
commit d9741fc7a2
10 changed files with 107 additions and 0 deletions

7
src/hanoi/Foablak.fxml Normal file
View File

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.layout.BorderPane?>
<BorderPane xmlns:fx="http://javafx.com/fxml/1" fx:controller="hanoi.FoablakController">
<!-- TODO Add Nodes -->
</BorderPane>

View File

@@ -0,0 +1,5 @@
package hanoi;
public class FoablakController {
}

27
src/hanoi/Main.java Normal file
View File

@@ -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);
}
}

View File

@@ -0,0 +1 @@
/* JavaFX CSS - Leave this comment until you have at least create one rule which uses -fx-Property */

6
src/module-info.java Normal file
View File

@@ -0,0 +1,6 @@
module HanoiTornyai {
requires javafx.controls;
requires javafx.fxml;
opens hanoi to javafx.graphics, javafx.fxml;
}