Registrierungsszwnenwechsel angepasst
This commit is contained in:
parent
e2de2b7383
commit
8a03439ab6
@ -127,11 +127,11 @@ public class HelloController {
|
|||||||
|
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private String veggieImageUrl = "pics/vegetarisch.png";
|
private String veggieImageUrl = "vegetarisch.png";
|
||||||
@FXML
|
@FXML
|
||||||
private String veganUrl = "pics/vegan.png";
|
private String veganUrl = "vegan.png";
|
||||||
@FXML
|
@FXML
|
||||||
private String meatUrl = "pics/fleisch.png";
|
private String meatUrl = "fleisch.png";
|
||||||
@FXML
|
@FXML
|
||||||
private String imageUrl;
|
private String imageUrl;
|
||||||
|
|
||||||
@ -172,7 +172,7 @@ public class HelloController {
|
|||||||
imageUrl=veganUrl;
|
imageUrl=veganUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
Image image = new Image("C:/VPR_Projekt_Java/target/classes/com/example/vpr_javafx/" + imageUrl);
|
Image image = new Image("file:target/classes/com/example/vpr_javafx/pics/" + imageUrl);
|
||||||
|
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -277,6 +277,16 @@ public class HelloController {
|
|||||||
+ "8: Konservierungsstoff");
|
+ "8: Konservierungsstoff");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@FXML
|
||||||
|
protected void ToRegistration(ActionEvent event) throws IOException
|
||||||
|
{
|
||||||
|
Parent root = FXMLLoader.load(getClass().getResource("Registration-view.fxml"));
|
||||||
|
Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();
|
||||||
|
Scene scene = new Scene(root);
|
||||||
|
stage.setScene(scene);
|
||||||
|
stage.show();
|
||||||
|
}
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
protected void OnRegistrationButton(ActionEvent event) throws IOException
|
protected void OnRegistrationButton(ActionEvent event) throws IOException
|
||||||
{
|
{
|
||||||
|
@ -70,7 +70,7 @@
|
|||||||
</font></Label>
|
</font></Label>
|
||||||
<PasswordField fx:id="pfPassword" style="-fx-background-color: #f0c8cb;" />
|
<PasswordField fx:id="pfPassword" style="-fx-background-color: #f0c8cb;" />
|
||||||
<Button mnemonicParsing="false" onAction="#OnSignInButton" style="-fx-background-color: #c7d0f0;" text="anmelden" textFill="WHITE" />
|
<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" />
|
<Button onAction="#ToRegistration" style="-fx-background-color: #c7d0f0;" textFill="WHITE" mnemonicParsing="false" text="registrieren" />
|
||||||
</items>
|
</items>
|
||||||
</ToolBar>
|
</ToolBar>
|
||||||
<Line endX="100.0" layoutX="245.0" layoutY="310.0" startX="-100.0" stroke="#746fa6" strokeWidth="3.0" />
|
<Line endX="100.0" layoutX="245.0" layoutY="310.0" startX="-100.0" stroke="#746fa6" strokeWidth="3.0" />
|
||||||
|
Binary file not shown.
@ -70,7 +70,7 @@
|
|||||||
</font></Label>
|
</font></Label>
|
||||||
<PasswordField fx:id="pfPassword" style="-fx-background-color: #f0c8cb;" />
|
<PasswordField fx:id="pfPassword" style="-fx-background-color: #f0c8cb;" />
|
||||||
<Button mnemonicParsing="false" onAction="#OnSignInButton" style="-fx-background-color: #c7d0f0;" text="anmelden" textFill="WHITE" />
|
<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" />
|
<Button onAction="#ToRegistration" style="-fx-background-color: #c7d0f0;" textFill="WHITE" mnemonicParsing="false" text="registrieren" />
|
||||||
</items>
|
</items>
|
||||||
</ToolBar>
|
</ToolBar>
|
||||||
<Line endX="100.0" layoutX="245.0" layoutY="310.0" startX="-100.0" stroke="#746fa6" strokeWidth="3.0" />
|
<Line endX="100.0" layoutX="245.0" layoutY="310.0" startX="-100.0" stroke="#746fa6" strokeWidth="3.0" />
|
||||||
|
@ -17,20 +17,17 @@
|
|||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
|
||||||
</rowConstraints>
|
</rowConstraints>
|
||||||
<children>
|
<children>
|
||||||
<Label text="Voller Name: " />
|
<Label text="Voller Name: " />
|
||||||
<Label text="Handynummer: " GridPane.rowIndex="1" />
|
<Label text="Handynummer: " GridPane.rowIndex="1" />
|
||||||
<Label prefWidth="95.0" text="Passwort: " GridPane.rowIndex="2" />
|
<Label prefWidth="95.0" text="Passwort: " GridPane.rowIndex="2" />
|
||||||
<Label text="Kind: " GridPane.rowIndex="4" />
|
<Label text="Kind: " GridPane.rowIndex="3" />
|
||||||
<Button mnemonicParsing="false" prefHeight="26.0" prefWidth="90.0" text="Abschicken" translateX="100.0" GridPane.columnIndex="1" GridPane.rowIndex="6" />
|
<Button mnemonicParsing="false" onAction="#OnRegistrationButton" prefHeight="26.0" prefWidth="90.0" text="Abschicken" translateX="100.0" GridPane.columnIndex="1" GridPane.rowIndex="5" />
|
||||||
<Label text="Passwort bestätigen: " GridPane.rowIndex="3" />
|
<PasswordField fx:id="pfPassword" GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
||||||
<PasswordField GridPane.columnIndex="1" GridPane.rowIndex="2" />
|
<TextField fx:id="tfName" GridPane.columnIndex="1" />
|
||||||
<PasswordField GridPane.columnIndex="1" GridPane.rowIndex="3" />
|
<TextField fx:id="tfPhone" GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
||||||
<TextField GridPane.columnIndex="1" />
|
<TextField fx:id="tfChild" GridPane.columnIndex="1" GridPane.rowIndex="3" />
|
||||||
<TextField GridPane.columnIndex="1" GridPane.rowIndex="1" />
|
|
||||||
<TextField GridPane.columnIndex="1" GridPane.rowIndex="4" />
|
|
||||||
</children>
|
</children>
|
||||||
</GridPane>
|
</GridPane>
|
||||||
</children>
|
</children>
|
||||||
|
Loading…
Reference in New Issue
Block a user