Fehler behoben

This commit is contained in:
Kevin Pfannenstiel 2023-01-31 15:49:57 +01:00
parent e54ce035e0
commit e2de2b7383
7 changed files with 296 additions and 106 deletions

0
order.txt Normal file
View File

View File

@ -287,7 +287,7 @@ public class Data {
* @return boolean inputValid
* @author Kevin Maier, Kevin Pfannenstiel
*/
public boolean validateData(TextField tfPhone, PasswordField pfPassword)
public boolean validateData(TextField tfPhone, PasswordField pfPassword, HelloController controller)
{
boolean phoneNumberMatchFound;
boolean passwordMatchFound;
@ -305,7 +305,7 @@ public class Data {
if (password.isEmpty() || phoneNumber.isEmpty())
{
Alert alert = new Alert(Alert.AlertType.WARNING);
alert.setContentText("Login fehlgeschlagen. Die eingegebene Handynummer ist nicht valide.");
alert.setContentText("Login fehlgeschlagen. Es wurde nichts eingegeben.");
alert.show();
return false;
}
@ -319,7 +319,7 @@ public class Data {
if (!users.containsKey(phoneNumber) || !phoneNumberMatchFound || phoneNumber.length() >= 15)
{
Alert alert = new Alert(Alert.AlertType.WARNING);
alert.setContentText("Login fehlgeschlagen. Die eingegebene Handynummer ist nicht valide.");
alert.setContentText("Login fehlgeschlagen. Die eingegebenen Daten sind falsch.");
alert.show();
return false;
}
@ -331,13 +331,14 @@ public class Data {
if (!users.get(phoneNumber).equals(password) || !passwordMatchFound || password.length() <8)
{
Alert alert = new Alert(Alert.AlertType.WARNING);
alert.setContentText("Login fehlgeschlagen. Das eingegebene Passwort ist nicht valide.");
alert.setContentText("Login fehlgeschlagen. Die eingegebenen Daten sind falsch.");
alert.show();
return false;
}
else
{
passwordValid = true;
controller.setRadioButton();
}
return phoneNumberValid && passwordValid;

View File

@ -9,6 +9,7 @@ import javafx.scene.Scene;
import javafx.scene.control.*;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
import java.io.Console;
@ -17,6 +18,7 @@ import java.io.FileWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@ -83,6 +85,8 @@ public class HelloController {
private ImageView imgImage9;
@FXML
private ImageView imgImage10;
@FXML
private AnchorPane anchorPane;
@FXML
private TextField tfPhone;
@ -96,9 +100,30 @@ public class HelloController {
@FXML
private Label allergene;
private Stage stage;
private Scene scene;
@FXML
private Button btResetSelection;
@FXML
private Button btToOrder;
@FXML
private RadioButton rbMonH1;
@FXML
private RadioButton rbMonH2;
@FXML
private RadioButton rbTueH1;
@FXML
private RadioButton rbTueH2;
@FXML
private RadioButton rbWednH1;
@FXML
private RadioButton rbWednH2;
@FXML
private RadioButton rbThurH1;
@FXML
private RadioButton rbThurH2;
@FXML
private RadioButton rbFriH1;
@FXML
private RadioButton rbFriH2;
@FXML
@ -110,17 +135,18 @@ public class HelloController {
@FXML
private String imageUrl;
private ArrayList<String> chosenMeals;
@FXML
protected void OnSignInButton(ActionEvent event) throws IOException
{
Data data = new Data("user.txt");
data.validateData(tfPhone, pfPassword);
data.validateData(tfPhone, pfPassword, this);
}
@FXML
protected void FillLabels() {
try {
List<String> menu = Files.readAllLines(Paths.get("menue.txt"));
@ -136,85 +162,85 @@ public class HelloController {
String dayMenu = dish+"\n"+sideDish+"\n"+"("+allergenic+")";
// if(typ.equals("Fleisch")) {
// imageUrl=meatUrl;
// }
// if(typ.equals("Vegetarisch")) {
// imageUrl=veggieImageUrl;
// }
// if(typ.equals("Vegan")) {
// imageUrl=veganUrl;
// }
//
// Image image = new Image("C:/Unterricht/VPR_Projekt/target/classes/com/example/vpr_javafx/" + imageUrl);
if(typ.equals("Fleisch")) {
imageUrl=meatUrl;
}
if(typ.equals("Vegetarisch")) {
imageUrl=veggieImageUrl;
}
if(typ.equals("Vegan")) {
imageUrl=veganUrl;
}
Image image = new Image("C:/VPR_Projekt_Java/target/classes/com/example/vpr_javafx/" + imageUrl);
switch (i) {
case 0:
lMonH1.setText(dayMenu);
// imgImage1.setImage(image);
imgImage1.setImage(image);
break;
case 1:
lMonD1.setText(dayMenu);
break;
case 2:
lMonH2.setText(dayMenu);
// imgImage2.setImage(image);
imgImage2.setImage(image);
break;
case 3:
lMonD2.setText(dayMenu);
break;
case 4:
lTueH1.setText(dayMenu);
// imgImage3.setImage(image);
imgImage3.setImage(image);
break;
case 5:
lTueD1.setText(dayMenu);
break;
case 6:
lTueH2.setText(dayMenu);
// imgImage4.setImage(image);
imgImage4.setImage(image);
break;
case 7:
lTueD2.setText(dayMenu);
break;
case 8:
lWednH1.setText(dayMenu);
// imgImage5.setImage(image);
imgImage5.setImage(image);
break;
case 9:
lWednD1.setText(dayMenu);
break;
case 10:
lWednH2.setText(dayMenu);
// imgImage6.setImage(image);
imgImage6.setImage(image);
break;
case 11:
lWednD2.setText(dayMenu);
break;
case 12:
lThurH1.setText(dayMenu);
// imgImage7.setImage(image);
imgImage7.setImage(image);
break;
case 13:
lThurD1.setText(dayMenu);
break;
case 14:
lThurH2.setText(dayMenu);
// imgImage8.setImage(image);
imgImage8.setImage(image);
break;
case 15:
lThurD2.setText(dayMenu);
break;
case 16:
lFriH1.setText(dayMenu);
// imgImage9.setImage(image);
imgImage9.setImage(image);
break;
case 17:
lFriD1.setText(dayMenu);
break;
case 18:
lFriH2.setText(dayMenu);
// imgImage10.setImage(image);
imgImage10.setImage(image);
break;
case 19:
lFriD2.setText(dayMenu);
@ -261,7 +287,7 @@ public class HelloController {
{
alert.setContentText("Registrierungsdaten unvollständig");
}
else if (validData.validateData(tfPhone, pfPassword))
else if (validData.validateData(tfPhone, pfPassword, this))
{
try (FileWriter writer = new FileWriter("user.txt")){
writer.write(tfName.getText() + ";" + tfPhone.getText() + ";" + tfChild.getText() + ";" + pfPassword.getText());
@ -273,4 +299,131 @@ public class HelloController {
}
}
}
@FXML
protected void setRadioButton()
{
ToggleGroup monToggle = new ToggleGroup();
ToggleGroup tueToggle = new ToggleGroup();
ToggleGroup wednToggle = new ToggleGroup();
ToggleGroup thurToggle = new ToggleGroup();
ToggleGroup friToggle = new ToggleGroup();
rbMonH1.setToggleGroup(monToggle);
rbMonH2.setToggleGroup(monToggle);
rbTueH1.setToggleGroup(tueToggle);
rbTueH2.setToggleGroup(tueToggle);
rbWednH1.setToggleGroup(wednToggle);
rbWednH2.setToggleGroup(wednToggle);
rbThurH1.setToggleGroup(thurToggle);
rbThurH2.setToggleGroup(thurToggle);
rbFriH1.setToggleGroup(friToggle);
rbFriH1.setToggleGroup(friToggle);
btResetSelection.setVisible(true);
btToOrder.setVisible(true);
rbMonH1.setVisible(true);
rbMonH2.setVisible(true);
rbTueH1.setVisible(true);
rbTueH2.setVisible(true);
rbWednH1.setVisible(true);
rbWednH2.setVisible(true);
rbThurH1.setVisible(true);
rbThurH2.setVisible(true);
rbFriH1.setVisible(true);
rbFriH2.setVisible(true);
}
@FXML
protected void resetSelection(ActionEvent event) throws IOException
{
rbMonH1.setSelected(false);
rbMonH2.setSelected(false);
rbTueH1.setSelected(false);
rbTueH2.setSelected(false);
rbWednH1.setSelected(false);
rbWednH2.setSelected(false);
rbThurH1.setSelected(false);
rbThurH2.setSelected(false);
rbFriH1.setSelected(false);
rbFriH2.setSelected(false);
chosenMeals.clear();
}
@FXML
protected void getLabelValueWithRadio(ActionEvent event)
{
chosenMeals = new ArrayList<>();
String mainDish;
String dessert;
if (rbMonH1.isSelected())
{
mainDish = lMonH1.getText();
dessert = lMonD1.getText();
chosenMeals.add("Hauptgericht: " + mainDish + " Dessert: " + dessert);
}
if (rbMonH2.isSelected())
{
mainDish = lMonH2.getText();
dessert = lMonD2.getText();
chosenMeals.add("Hauptgericht: " + mainDish + " Dessert: " + dessert);
}
if (rbTueH1.isSelected())
{
mainDish = lTueH1.getText();
dessert = lTueD1.getText();
chosenMeals.add("Hauptgericht: " + mainDish + " Dessert: " + dessert);
}
if (rbTueH2.isSelected())
{
mainDish = lTueH2.getText();
dessert = lTueD2.getText();
chosenMeals.add("Hauptgericht: " + mainDish + " Dessert: " + dessert);
}
if (rbWednH1.isSelected())
{
mainDish = lWednH1.getText();
dessert = lWednD1.getText();
chosenMeals.add("Hauptgericht: " + mainDish + " Dessert: " + dessert);
}
if (rbWednH2.isSelected())
{
mainDish = lWednH2.getText();
dessert = lWednD2.getText();
chosenMeals.add("Hauptgericht: " + mainDish + " Dessert: " + dessert);
}
if (rbThurH1.isSelected())
{
mainDish = lThurH1.getText();
dessert = lThurD1.getText();
chosenMeals.add("Hauptgericht: " + mainDish + " Dessert: " + dessert);
}
if (rbThurH2.isSelected())
{
mainDish = lThurH2.getText();
dessert = lThurD2.getText();
chosenMeals.add("Hauptgericht: " + mainDish + " Dessert: " + dessert);
}
if (rbFriH1.isSelected())
{
mainDish = lFriH1.getText();
dessert = lFriD1.getText();
chosenMeals.add("Hauptgericht: " + mainDish + " Dessert: " + dessert);
}
if (rbFriH2.isSelected())
{
mainDish = lFriH2.getText();
dessert = lFriD2.getText();
chosenMeals.add("Hauptgericht: " + mainDish + " Dessert: " + dessert);
}
Alert alert = new Alert(Alert.AlertType.INFORMATION);
alert.setContentText(chosenMeals.toString());
alert.show();
}
}

View File

@ -1,19 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToolBar?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.shape.Line?>
<?import javafx.scene.text.Font?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.shape.*?>
<?import javafx.scene.text.*?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="742.0" prefWidth="980.0" style="-fx-background-color: #f0C8bd;" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.vpr_javafx.HelloController">
<Label fx:id="monday" layoutX="76.0" layoutY="176.0" textFill="#6f7baf">
<AnchorPane fx:id="anchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="795.0" prefWidth="980.0" style="-fx-background-color: #f0C8bd;" xmlns="http://javafx.com/javafx/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.vpr_javafx.HelloController">
<Label layoutX="76.0" layoutY="176.0" text="Montag" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font>
@ -21,7 +16,7 @@
<Insets />
</opaqueInsets>
</Label>
<Label fx:id="tuesday" layoutX="74.0" layoutY="299.0" textFill="#6f7baf">
<Label layoutX="74.0" layoutY="299.0" text="Dienstag" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font>
@ -29,7 +24,7 @@
<Insets />
</opaqueInsets>
</Label>
<Label fx:id="wendesday" layoutX="72.0" layoutY="422.0" textFill="#6f7baf">
<Label layoutX="72.0" layoutY="422.0" text="Mittwoch" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font>
@ -37,7 +32,7 @@
<Insets />
</opaqueInsets>
</Label>
<Label fx:id="thursday" layoutX="63.0" layoutY="543.0" textFill="#6f7baf">
<Label layoutX="63.0" layoutY="543.0" text="Donnerstag" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font>
@ -45,7 +40,7 @@
<Insets />
</opaqueInsets>
</Label>
<Label fx:id="friday" layoutX="79.0" layoutY="664.0" textFill="#6f7baf">
<Label layoutX="79.0" layoutY="664.0" text="Freitag" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font>
@ -75,6 +70,7 @@
</font></Label>
<PasswordField fx:id="pfPassword" style="-fx-background-color: #f0c8cb;" />
<Button mnemonicParsing="false" onAction="#OnSignInButton" style="-fx-background-color: #c7d0f0;" text="anmelden" textFill="WHITE" />
<Button style="-fx-background-color: #c7d0f0;" textFill="WHITE" mnemonicParsing="false" text="registrieren" />
</items>
</ToolBar>
<Line endX="100.0" layoutX="245.0" layoutY="310.0" startX="-100.0" stroke="#746fa6" strokeWidth="3.0" />
@ -87,83 +83,83 @@
<Line endX="100.0" layoutX="581.0" layoutY="433.0" startX="-100.0" stroke="#746fa6" strokeWidth="3.0" />
<Line endX="100.0" layoutX="581.0" layoutY="554.0" startX="-100.0" stroke="#746fa6" strokeWidth="3.0" />
<Line endX="100.0" layoutX="581.0" layoutY="675.0" startX="-100.0" stroke="#746fa6" strokeWidth="3.0" />
<Label fx:id="lMonH1" layoutX="148.0" layoutY="140.0" prefHeight="44.0" prefWidth="198.0" textFill="#6f7baf">
<Label fx:id="lMonH1" layoutX="148.0" layoutY="132.0" prefHeight="54.0" prefWidth="198.0" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lMonH2" layoutX="148.0" layoutY="186.0" prefHeight="44.0" prefWidth="198.0" textFill="#6f7baf">
<Label fx:id="lMonH2" layoutX="148.0" layoutY="188.0" prefHeight="54.0" prefWidth="198.0" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lTueH1" layoutX="148.0" layoutY="265.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lTueH1" layoutX="148.0" layoutY="255.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lTueH2" layoutX="148.0" layoutY="309.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lTueH2" layoutX="148.0" layoutY="311.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lWednH1" layoutX="148.0" layoutY="388.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lWednH1" layoutX="148.0" layoutY="378.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lWednH2" layoutX="148.0" layoutY="432.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lWednH2" layoutX="148.0" layoutY="434.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lThurH1" layoutX="148.0" layoutY="509.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lThurH1" layoutX="148.0" layoutY="501.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lThurH2" layoutX="148.0" layoutY="553.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lThurH2" layoutX="148.0" layoutY="555.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lFriH1" layoutX="148.0" layoutY="629.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lFriH1" layoutX="148.0" layoutY="621.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lFriH2" layoutX="148.0" layoutY="674.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lFriH2" layoutX="148.0" layoutY="676.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lMonD1" layoutX="482.0" layoutY="142.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lMonD1" layoutX="482.0" layoutY="132.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lMonD2" layoutX="482.0" layoutY="186.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lMonD2" layoutX="482.0" layoutY="188.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lTueD1" layoutX="482.0" layoutY="265.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lTueD1" layoutX="482.0" layoutY="255.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lTueD2" layoutX="482.0" layoutY="309.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lTueD2" layoutX="482.0" layoutY="311.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lWednD1" layoutX="482.0" layoutY="388.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lWednD1" layoutX="482.0" layoutY="378.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lWednD2" layoutX="482.0" layoutY="432.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lWednD2" layoutX="482.0" layoutY="434.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lThurD1" layoutX="482.0" layoutY="509.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lThurD1" layoutX="482.0" layoutY="501.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lThurD2" layoutX="482.0" layoutY="553.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lThurD2" layoutX="482.0" layoutY="555.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lFriD1" layoutX="482.0" layoutY="630.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lFriD1" layoutX="482.0" layoutY="621.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lFriD2" layoutX="482.0" layoutY="674.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lFriD2" layoutX="482.0" layoutY="676.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
@ -204,4 +200,26 @@
</font>
</Label>
<Label fx:id="allergene" layoutX="780.0" layoutY="362.0" prefHeight="183.0" prefWidth="192.0" />
<ImageView fx:id="imgImage1" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="146.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage2" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="195.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage3" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="271.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage4" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="318.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage5" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="392.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage6" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="439.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage7" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="515.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage8" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="559.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage9" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="635.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage10" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="680.0" pickOnBounds="true" preserveRatio="true" />
<Button fx:id="btResetSelection" layoutX="779.0" layoutY="622.0" mnemonicParsing="false" onAction="#resetSelection" text="Auswahl aufheben" visible="false" />
<Button fx:id="btToOrder" layoutX="779.0" layoutY="675.0" mnemonicParsing="false" prefHeight="26.0" prefWidth="114.0" text="Bestellen" visible="false" />
<RadioButton fx:id="rbMonH1" layoutX="359.0" layoutY="159.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbMonH2" layoutX="359.0" layoutY="201.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbTueH1" layoutX="360.0" layoutY="278.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbTueH2" layoutX="361.0" layoutY="325.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbWednH1" layoutX="360.0" layoutY="405.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbWednH2" layoutX="359.0" layoutY="445.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbThurH1" layoutX="360.0" layoutY="528.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbThurH2" layoutX="360.0" layoutY="566.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbFriH1" layoutX="360.0" layoutY="650.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbFriH2" layoutX="360.0" layoutY="687.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
</AnchorPane>

View File

@ -1,19 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToolBar?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.shape.Line?>
<?import javafx.scene.text.Font?>
<?import javafx.geometry.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.shape.*?>
<?import javafx.scene.text.*?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="742.0" prefWidth="980.0" style="-fx-background-color: #f0C8bd;" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.vpr_javafx.HelloController">
<Label fx:id="monday" layoutX="76.0" layoutY="176.0" textFill="#6f7baf">
<AnchorPane fx:id="anchorPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="795.0" prefWidth="980.0" style="-fx-background-color: #f0C8bd;" xmlns="http://javafx.com/javafx/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.vpr_javafx.HelloController">
<Label layoutX="76.0" layoutY="176.0" text="Montag" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font>
@ -21,7 +16,7 @@
<Insets />
</opaqueInsets>
</Label>
<Label fx:id="tuesday" layoutX="74.0" layoutY="299.0" textFill="#6f7baf">
<Label layoutX="74.0" layoutY="299.0" text="Dienstag" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font>
@ -29,7 +24,7 @@
<Insets />
</opaqueInsets>
</Label>
<Label fx:id="wendesday" layoutX="72.0" layoutY="422.0" textFill="#6f7baf">
<Label layoutX="72.0" layoutY="422.0" text="Mittwoch" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font>
@ -37,7 +32,7 @@
<Insets />
</opaqueInsets>
</Label>
<Label fx:id="thursday" layoutX="63.0" layoutY="543.0" textFill="#6f7baf">
<Label layoutX="63.0" layoutY="543.0" text="Donnerstag" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font>
@ -45,7 +40,7 @@
<Insets />
</opaqueInsets>
</Label>
<Label fx:id="friday" layoutX="79.0" layoutY="664.0" textFill="#6f7baf">
<Label layoutX="79.0" layoutY="664.0" text="Freitag" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font>
@ -75,6 +70,7 @@
</font></Label>
<PasswordField fx:id="pfPassword" style="-fx-background-color: #f0c8cb;" />
<Button mnemonicParsing="false" onAction="#OnSignInButton" style="-fx-background-color: #c7d0f0;" text="anmelden" textFill="WHITE" />
<Button style="-fx-background-color: #c7d0f0;" textFill="WHITE" mnemonicParsing="false" text="registrieren" />
</items>
</ToolBar>
<Line endX="100.0" layoutX="245.0" layoutY="310.0" startX="-100.0" stroke="#746fa6" strokeWidth="3.0" />
@ -87,83 +83,83 @@
<Line endX="100.0" layoutX="581.0" layoutY="433.0" startX="-100.0" stroke="#746fa6" strokeWidth="3.0" />
<Line endX="100.0" layoutX="581.0" layoutY="554.0" startX="-100.0" stroke="#746fa6" strokeWidth="3.0" />
<Line endX="100.0" layoutX="581.0" layoutY="675.0" startX="-100.0" stroke="#746fa6" strokeWidth="3.0" />
<Label fx:id="lMonH1" layoutX="148.0" layoutY="140.0" prefHeight="44.0" prefWidth="198.0" textFill="#6f7baf">
<Label fx:id="lMonH1" layoutX="148.0" layoutY="132.0" prefHeight="54.0" prefWidth="198.0" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lMonH2" layoutX="148.0" layoutY="186.0" prefHeight="44.0" prefWidth="198.0" textFill="#6f7baf">
<Label fx:id="lMonH2" layoutX="148.0" layoutY="188.0" prefHeight="54.0" prefWidth="198.0" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lTueH1" layoutX="148.0" layoutY="265.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lTueH1" layoutX="148.0" layoutY="255.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lTueH2" layoutX="148.0" layoutY="309.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lTueH2" layoutX="148.0" layoutY="311.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lWednH1" layoutX="148.0" layoutY="388.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lWednH1" layoutX="148.0" layoutY="378.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lWednH2" layoutX="148.0" layoutY="432.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lWednH2" layoutX="148.0" layoutY="434.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lThurH1" layoutX="148.0" layoutY="509.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lThurH1" layoutX="148.0" layoutY="501.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lThurH2" layoutX="148.0" layoutY="553.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lThurH2" layoutX="148.0" layoutY="555.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lFriH1" layoutX="148.0" layoutY="629.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lFriH1" layoutX="148.0" layoutY="621.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lFriH2" layoutX="148.0" layoutY="674.0" prefHeight="44.0" prefWidth="198.0" text="" textFill="#6f7baf">
<Label fx:id="lFriH2" layoutX="148.0" layoutY="676.0" prefHeight="54.0" prefWidth="198.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lMonD1" layoutX="482.0" layoutY="142.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lMonD1" layoutX="482.0" layoutY="132.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lMonD2" layoutX="482.0" layoutY="186.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lMonD2" layoutX="482.0" layoutY="188.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lTueD1" layoutX="482.0" layoutY="265.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lTueD1" layoutX="482.0" layoutY="255.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lTueD2" layoutX="482.0" layoutY="309.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lTueD2" layoutX="482.0" layoutY="311.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lWednD1" layoutX="482.0" layoutY="388.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lWednD1" layoutX="482.0" layoutY="378.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lWednD2" layoutX="482.0" layoutY="432.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lWednD2" layoutX="482.0" layoutY="434.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lThurD1" layoutX="482.0" layoutY="509.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lThurD1" layoutX="482.0" layoutY="501.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lThurD2" layoutX="482.0" layoutY="553.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lThurD2" layoutX="482.0" layoutY="555.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lFriD1" layoutX="482.0" layoutY="630.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lFriD1" layoutX="482.0" layoutY="621.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
<Label fx:id="lFriD2" layoutX="482.0" layoutY="674.0" prefHeight="44.0" prefWidth="203.0" text="" textFill="#6f7baf">
<Label fx:id="lFriD2" layoutX="482.0" layoutY="676.0" prefHeight="54.0" prefWidth="203.0" text="" textFill="#6f7baf">
<font>
<Font name="Century Gothic Bold" size="13.0" />
</font></Label>
@ -204,4 +200,26 @@
</font>
</Label>
<Label fx:id="allergene" layoutX="780.0" layoutY="362.0" prefHeight="183.0" prefWidth="192.0" />
<ImageView fx:id="imgImage1" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="146.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage2" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="195.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage3" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="271.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage4" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="318.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage5" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="392.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage6" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="439.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage7" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="515.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage8" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="559.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage9" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="635.0" pickOnBounds="true" preserveRatio="true" />
<ImageView fx:id="imgImage10" fitHeight="30.0" fitWidth="35.0" layoutX="112.0" layoutY="680.0" pickOnBounds="true" preserveRatio="true" />
<Button fx:id="btResetSelection" layoutX="779.0" layoutY="622.0" mnemonicParsing="false" onAction="#resetSelection" text="Auswahl aufheben" visible="false" />
<Button fx:id="btToOrder" layoutX="779.0" layoutY="675.0" mnemonicParsing="false" prefHeight="26.0" prefWidth="114.0" text="Bestellen" visible="false" />
<RadioButton fx:id="rbMonH1" layoutX="359.0" layoutY="159.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbMonH2" layoutX="359.0" layoutY="201.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbTueH1" layoutX="360.0" layoutY="278.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbTueH2" layoutX="361.0" layoutY="325.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbWednH1" layoutX="360.0" layoutY="405.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbWednH2" layoutX="359.0" layoutY="445.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbThurH1" layoutX="360.0" layoutY="528.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbThurH2" layoutX="360.0" layoutY="566.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbFriH1" layoutX="360.0" layoutY="650.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
<RadioButton fx:id="rbFriH2" layoutX="360.0" layoutY="687.0" mnemonicParsing="false" onAction="#getLabelValueWithRadio" visible="false" />
</AnchorPane>