commit 80f1275f63ea90d59ccab22a4c52000f5912bb7b Author: Jonas Hinterdorfer Date: Thu Apr 24 11:23:09 2025 +0200 added basic diff --git a/src/main/java/at/ionas999/questioncatalog/App.java b/src/main/java/at/ionas999/questioncatalog/App.java new file mode 100644 index 0000000..d0a563a --- /dev/null +++ b/src/main/java/at/ionas999/questioncatalog/App.java @@ -0,0 +1,23 @@ +package at.ionas999.questioncatalog; + +import javafx.application.Application; +import javafx.fxml.FXMLLoader; +import javafx.scene.Scene; +import javafx.stage.Stage; + +import java.io.IOException; + +public class App extends Application { + @Override + public void start(Stage stage) throws IOException { + FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource("main.fxml")); + Scene scene = new Scene(fxmlLoader.load(), 320, 240); + stage.setTitle("Hello!"); + stage.setScene(scene); + stage.show(); + } + + public static void main(String[] args) { + launch(); + } +} \ No newline at end of file diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java new file mode 100644 index 0000000..ed2370d --- /dev/null +++ b/src/main/java/module-info.java @@ -0,0 +1,8 @@ +module at.ionas999.questioncatalog { + requires javafx.controls; + requires javafx.fxml; + + + opens at.ionas999.questioncatalog to javafx.fxml; + exports at.ionas999.questioncatalog; +} \ No newline at end of file diff --git a/src/main/resources/at/ionas999/questioncatalog/main.fxml b/src/main/resources/at/ionas999/questioncatalog/main.fxml new file mode 100644 index 0000000..a1a839c --- /dev/null +++ b/src/main/resources/at/ionas999/questioncatalog/main.fxml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + +