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 @@ + + + - - - -