Compare commits
2 Commits
27710e92af
...
c7d0514c43
Author | SHA1 | Date | |
---|---|---|---|
c7d0514c43 | |||
702677b65b |
@ -18,7 +18,7 @@ public class HelloApplication extends Application {
|
|||||||
public void start(Stage stage) throws IOException {
|
public void start(Stage stage) throws IOException {
|
||||||
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("login-view.fxml"));
|
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("login-view.fxml"));
|
||||||
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
||||||
//stage = primary;
|
primary = stage;
|
||||||
stage.setTitle("Essen Bestellung im Kindergarten");
|
stage.setTitle("Essen Bestellung im Kindergarten");
|
||||||
stage.setScene(scene);
|
stage.setScene(scene);
|
||||||
stage.show();
|
stage.show();
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/*Richard Reiswich*/
|
/*Reshad Meher*/
|
||||||
package com.bib.essensbestellungsverwaltung;
|
package com.bib.essensbestellungsverwaltung;
|
||||||
|
|
||||||
import javafx.beans.NamedArg;
|
import javafx.beans.NamedArg;
|
||||||
@ -17,7 +17,6 @@ import java.util.HashMap;
|
|||||||
public class LoginController {
|
public class LoginController {
|
||||||
@FXML
|
@FXML
|
||||||
private TextField tfEmail;
|
private TextField tfEmail;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
private PasswordField pfPassword;
|
private PasswordField pfPassword;
|
||||||
|
|
||||||
@ -30,15 +29,11 @@ public class LoginController {
|
|||||||
if(benutzerMap.containsKey(email) && benutzerMap.containsValue(password)){
|
if(benutzerMap.containsKey(email) && benutzerMap.containsValue(password)){
|
||||||
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("menue-view.fxml"));
|
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("menue-view.fxml"));
|
||||||
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
||||||
Stage stage = new Stage();
|
HelloApplication.primary.setScene(scene);
|
||||||
stage.setTitle("Essen Bestellung im Kindergarten");
|
|
||||||
stage.setScene(scene);
|
|
||||||
stage.show();
|
|
||||||
}else {
|
}else {
|
||||||
Alert alert = new Alert(Alert.AlertType.ERROR,"Email oder Passwort ist falsch");
|
Alert alert = new Alert(Alert.AlertType.ERROR,"Email oder Passwort ist falsch");
|
||||||
alert.showAndWait();
|
alert.showAndWait();
|
||||||
}
|
}
|
||||||
|
|
||||||
tfEmail.setText("");
|
tfEmail.setText("");
|
||||||
pfPassword.setText("");
|
pfPassword.setText("");
|
||||||
}
|
}
|
||||||
@ -46,10 +41,6 @@ public class LoginController {
|
|||||||
protected void changeToSignUp() throws IOException {
|
protected void changeToSignUp() throws IOException {
|
||||||
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("signUp-view.fxml"));
|
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("signUp-view.fxml"));
|
||||||
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
Scene scene = new Scene(fxmlLoader.load(), 950,480);
|
||||||
Stage stage = new Stage();
|
HelloApplication.primary.setScene(scene);
|
||||||
stage.setTitle("Essen Bestellung im Kindergarten");
|
|
||||||
stage.setScene(scene);
|
|
||||||
stage.show();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user