diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/HelloApplication.java b/src/main/java/com/bib/essensbestellungsverwaltung/HelloApplication.java index 6f0cb79..e0045a2 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/HelloApplication.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/HelloApplication.java @@ -2,7 +2,6 @@ package com.bib.essensbestellungsverwaltung; import javafx.application.Application; import javafx.fxml.FXMLLoader; -import javafx.scene.Parent; import javafx.scene.Scene; import javafx.stage.Stage; @@ -10,17 +9,17 @@ import java.io.IOException; public class HelloApplication extends Application { @Override - public void start(Stage primaryStage) throws IOException { - Parent fxmlStartSeiteLoader = FXMLLoader.load(HelloApplication.class.getResource("menue-view.fxml")); + public void start(Stage stage) throws IOException { + FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml")); /** - * @author: Reshad Meher + * @autor: Reshad Meher * Fenstergrößer * Fenstertitle */ - primaryStage.setTitle("Essen Bestellung im Kindergarten"); - primaryStage.setScene(new Scene(fxmlStartSeiteLoader,950,480)); - primaryStage.show(); - + Scene scene = new Scene(fxmlLoader.load(), 480, 280); + stage.setTitle("Essen Bestellung im Kindergarten"); + stage.setScene(scene); + stage.show(); } public static void main(String[] args) { diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/LaunchController.java b/src/main/java/com/bib/essensbestellungsverwaltung/LaunchController.java deleted file mode 100644 index 9e9a8a5..0000000 --- a/src/main/java/com/bib/essensbestellungsverwaltung/LaunchController.java +++ /dev/null @@ -1,4 +0,0 @@ -package com.bib.essensbestellungsverwaltung; - -public class LaunchController { -} diff --git a/src/main/java/com/bib/essensbestellungsverwaltung/SceneController.java b/src/main/java/com/bib/essensbestellungsverwaltung/SceneController.java index 5bd1bf5..57dca68 100644 --- a/src/main/java/com/bib/essensbestellungsverwaltung/SceneController.java +++ b/src/main/java/com/bib/essensbestellungsverwaltung/SceneController.java @@ -1,24 +1,12 @@ package com.bib.essensbestellungsverwaltung; -import javafx.event.ActionEvent; import javafx.fxml.FXMLLoader; -import javafx.scene.Node; import javafx.scene.Parent; import javafx.scene.Scene; -import javafx.stage.Stage; import java.io.IOException; +import java.util.Objects; public class SceneController { - private Stage stage; - private Scene scene; - private Parent root; - public void switchToLoginScene(ActionEvent event) throws IOException{ - Parent root = FXMLLoader.load(getClass().getResource("login-view.fxml")); - stage = (Stage) ((Node)event.getSource()).getScene().getWindow(); - scene = new Scene(root); - stage.setScene(scene); - stage.show(); - } } diff --git a/src/main/resources/com/bib/essensbestellungsverwaltung/adminMenue.css b/src/main/resources/com/bib/essensbestellungsverwaltung/adminMenue.css new file mode 100644 index 0000000..e924490 --- /dev/null +++ b/src/main/resources/com/bib/essensbestellungsverwaltung/adminMenue.css @@ -0,0 +1,12 @@ +#buttons:hover{ + -fx-underline: true; + -fx-background-color: rgba(85, 103, 136, 0.64); +} + +#optionsContainer{ + -fx-background-color: lightblue; +} + +#optionsContainer{ + -fx-background-color: darkblue; +} \ No newline at end of file diff --git a/src/main/resources/com/bib/essensbestellungsverwaltung/child.css b/src/main/resources/com/bib/essensbestellungsverwaltung/child.css new file mode 100644 index 0000000..2424f48 --- /dev/null +++ b/src/main/resources/com/bib/essensbestellungsverwaltung/child.css @@ -0,0 +1,5 @@ +#btAddChild{ + -fx-background-color: lightblue; + -fx-border-color: transparent; + -fx-text-fill: white; +} \ No newline at end of file diff --git a/src/main/resources/com/bib/essensbestellungsverwaltung/deleteChild-view.fxml b/src/main/resources/com/bib/essensbestellungsverwaltung/deleteChild-view.fxml new file mode 100644 index 0000000..4f1d8c4 --- /dev/null +++ b/src/main/resources/com/bib/essensbestellungsverwaltung/deleteChild-view.fxml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + +