From fa666efaf8141598e6cc32740035af02fe91f322 Mon Sep 17 00:00:00 2001 From: Jonas Hinterdorfer Date: Wed, 14 May 2025 12:52:11 +0200 Subject: [PATCH] implemented new design --- .../java/at/ionas999/questioncatalog/App.java | 19 +-- .../controller/ViewController.java | 1 + .../ionas999/questioncatalog/answerText.fxml | 84 +++++++++---- .../at/ionas999/questioncatalog/main.fxml | 93 +++++++++++--- .../at/ionas999/questioncatalog/test.fxml | 119 +++++++++++++----- .../at/ionas999/questioncatalog/upload.fxml | 70 +++++++---- .../at/ionas999/questioncatalog/view.fxml | 91 +++++++++----- 7 files changed, 340 insertions(+), 137 deletions(-) diff --git a/src/main/java/at/ionas999/questioncatalog/App.java b/src/main/java/at/ionas999/questioncatalog/App.java index 17a1ade..5be1de3 100644 --- a/src/main/java/at/ionas999/questioncatalog/App.java +++ b/src/main/java/at/ionas999/questioncatalog/App.java @@ -13,15 +13,16 @@ import java.io.IOException; public class App extends Application { // Der gesamte fxml code wurde mithilfe des Github Copilotes generiert - @Override - public void start(Stage stage) throws IOException { - Application.setUserAgentStylesheet(new CupertinoLight().getUserAgentStylesheet()); - FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource("main.fxml")); - Scene scene = new Scene(fxmlLoader.load(), 320, 240); - stage.setTitle("Question Catalog"); - stage.setScene(scene); - stage.show(); - } +@Override +public void start(Stage stage) throws IOException { + Application.setUserAgentStylesheet(new CupertinoLight().getUserAgentStylesheet()); + FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource("main.fxml")); + Scene scene = new Scene(fxmlLoader.load()); + stage.setTitle("Question Catalog"); + stage.setScene(scene); + stage.setMaximized(true); + stage.show(); +} public static void main(String[] args) { launch(); diff --git a/src/main/java/at/ionas999/questioncatalog/controller/ViewController.java b/src/main/java/at/ionas999/questioncatalog/controller/ViewController.java index 8045eae..0642441 100644 --- a/src/main/java/at/ionas999/questioncatalog/controller/ViewController.java +++ b/src/main/java/at/ionas999/questioncatalog/controller/ViewController.java @@ -16,6 +16,7 @@ import javafx.collections.transformation.FilteredList; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.scene.control.*; +import javafx.scene.input.KeyCode; import javafx.stage.Stage; import java.io.IOException; diff --git a/src/main/resources/at/ionas999/questioncatalog/answerText.fxml b/src/main/resources/at/ionas999/questioncatalog/answerText.fxml index d5d07e1..85445c9 100644 --- a/src/main/resources/at/ionas999/questioncatalog/answerText.fxml +++ b/src/main/resources/at/ionas999/questioncatalog/answerText.fxml @@ -1,39 +1,77 @@ + + + - - - -