Registrierungsszwnenwechsel angepasst
This commit is contained in:
@@ -127,11 +127,11 @@ public class HelloController {
|
||||
|
||||
|
||||
@FXML
|
||||
private String veggieImageUrl = "pics/vegetarisch.png";
|
||||
private String veggieImageUrl = "vegetarisch.png";
|
||||
@FXML
|
||||
private String veganUrl = "pics/vegan.png";
|
||||
private String veganUrl = "vegan.png";
|
||||
@FXML
|
||||
private String meatUrl = "pics/fleisch.png";
|
||||
private String meatUrl = "fleisch.png";
|
||||
@FXML
|
||||
private String imageUrl;
|
||||
|
||||
@@ -172,7 +172,7 @@ public class HelloController {
|
||||
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) {
|
||||
case 0:
|
||||
@@ -277,6 +277,16 @@ public class HelloController {
|
||||
+ "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
|
||||
protected void OnRegistrationButton(ActionEvent event) throws IOException
|
||||
{
|
||||
|
@@ -70,7 +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" />
|
||||
<Button onAction="#ToRegistration" 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" />
|
||||
|
Reference in New Issue
Block a user