css + png hinzugefügt
@ -2,7 +2,6 @@ package com.bib.essensbestellungsverwaltung;
|
|||||||
|
|
||||||
import javafx.application.Application;
|
import javafx.application.Application;
|
||||||
import javafx.fxml.FXMLLoader;
|
import javafx.fxml.FXMLLoader;
|
||||||
import javafx.scene.Parent;
|
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
import javafx.stage.Stage;
|
import javafx.stage.Stage;
|
||||||
|
|
||||||
@ -10,17 +9,17 @@ import java.io.IOException;
|
|||||||
|
|
||||||
public class HelloApplication extends Application {
|
public class HelloApplication extends Application {
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage primaryStage) throws IOException {
|
public void start(Stage stage) throws IOException {
|
||||||
Parent fxmlStartSeiteLoader = FXMLLoader.load(HelloApplication.class.getResource("menue-view.fxml"));
|
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
|
||||||
/**
|
/**
|
||||||
* @author: Reshad Meher
|
* @autor: Reshad Meher
|
||||||
* Fenstergrößer
|
* Fenstergrößer
|
||||||
* Fenstertitle
|
* Fenstertitle
|
||||||
*/
|
*/
|
||||||
primaryStage.setTitle("Essen Bestellung im Kindergarten");
|
Scene scene = new Scene(fxmlLoader.load(), 480, 280);
|
||||||
primaryStage.setScene(new Scene(fxmlStartSeiteLoader,950,480));
|
stage.setTitle("Essen Bestellung im Kindergarten");
|
||||||
primaryStage.show();
|
stage.setScene(scene);
|
||||||
|
stage.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
package com.bib.essensbestellungsverwaltung;
|
|
||||||
|
|
||||||
public class LaunchController {
|
|
||||||
}
|
|
@ -1,24 +1,12 @@
|
|||||||
package com.bib.essensbestellungsverwaltung;
|
package com.bib.essensbestellungsverwaltung;
|
||||||
|
|
||||||
import javafx.event.ActionEvent;
|
|
||||||
import javafx.fxml.FXMLLoader;
|
import javafx.fxml.FXMLLoader;
|
||||||
import javafx.scene.Node;
|
|
||||||
import javafx.scene.Parent;
|
import javafx.scene.Parent;
|
||||||
import javafx.scene.Scene;
|
import javafx.scene.Scene;
|
||||||
import javafx.stage.Stage;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
public class SceneController {
|
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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
}
|
@ -0,0 +1,5 @@
|
|||||||
|
#btAddChild{
|
||||||
|
-fx-background-color: lightblue;
|
||||||
|
-fx-border-color: transparent;
|
||||||
|
-fx-text-fill: white;
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import javafx.scene.control.Button?>
|
||||||
|
<?import javafx.scene.image.Image?>
|
||||||
|
<?import javafx.scene.image.ImageView?>
|
||||||
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
|
<?import javafx.scene.text.Font?>
|
||||||
|
<?import javafx.scene.text.Text?>
|
||||||
|
|
||||||
|
|
||||||
|
<AnchorPane prefHeight="400.0" prefWidth="600.0" stylesheets="@deleteChild.css" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.bib.essensbestellungsverwaltung.ParentController">
|
||||||
|
<children>
|
||||||
|
<Text layoutX="253.0" layoutY="180.0" strokeType="OUTSIDE" strokeWidth="0.0" text="[Name vom Kind] löschen?" wrappingWidth="274.130859375">
|
||||||
|
<font>
|
||||||
|
<Font size="23.0" />
|
||||||
|
</font>
|
||||||
|
</Text>
|
||||||
|
<ImageView fitHeight="150.0" fitWidth="200.0" layoutX="66.0" layoutY="97.0" pickOnBounds="true" preserveRatio="true">
|
||||||
|
<image>
|
||||||
|
<Image url="@pics/trash-can.png" />
|
||||||
|
</image>
|
||||||
|
</ImageView>
|
||||||
|
<Button id="btDeletConfim" layoutX="390.0" layoutY="315.0" mnemonicParsing="false" prefHeight="53.0" prefWidth="141.0" text="Bestätigen" />
|
||||||
|
<Button id="btDeleteDeny" layoutX="71.0" layoutY="315.0" mnemonicParsing="false" prefHeight="53.0" prefWidth="141.0" text="zurück" />
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
@ -0,0 +1,18 @@
|
|||||||
|
#btDeletConfim{
|
||||||
|
-fx-background-color: lightblue;
|
||||||
|
-fx-text-fill: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#btDeletConfim:hover{
|
||||||
|
-fx-underline: true;
|
||||||
|
-fx-text-fill: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
#btDeleteDeny{
|
||||||
|
-fx-background-color: transparent;
|
||||||
|
-fx-underline: true;
|
||||||
|
}
|
||||||
|
|
||||||
|
#btDeleteDeny:hover{
|
||||||
|
-fx-text-fill: lightblue;
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
#btFoodChoice{
|
||||||
|
-fx-background-color: transparent;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#btFoodChoice:hover{
|
||||||
|
-fx-underline: true;
|
||||||
|
-fx-text-fill: black;
|
||||||
|
}
|
||||||
|
#btPlaceOrder{
|
||||||
|
-fx-background-color: lightblue;
|
||||||
|
-fx-text-fill: white;
|
||||||
|
-fx-background-radius: 25;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#btPlaceOrder:hover{
|
||||||
|
-fx-border-width: 0;
|
||||||
|
-fx-text-fill: black;
|
||||||
|
-fx-underline: true;
|
||||||
|
}
|
||||||
|
|
||||||
|
#cbChooseChild{
|
||||||
|
-fx-background-color: lightgray;
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
#contentContainer{
|
||||||
|
-fx-background-color: #add8e6;
|
||||||
|
}
|
||||||
|
|
||||||
|
#contentContainer2{
|
||||||
|
-fx-background-color: lightblue;
|
||||||
|
}
|
||||||
|
|
||||||
|
#contentButton{
|
||||||
|
-fx-background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
#contentButton:hover{
|
||||||
|
-fx-underline: true;
|
||||||
|
-fx-background-color: #78939d;
|
||||||
|
-fx-text-fill: white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#btLogOut{
|
||||||
|
-fx-background-color: transparent;
|
||||||
|
-fx-pref-height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#btLogOut:hover{
|
||||||
|
-fx-underline: true;
|
||||||
|
}
|
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 7.1 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 19 KiB |
After Width: | Height: | Size: 8.8 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 7.8 KiB |