|
@@ -30,10 +30,10 @@ public class CashMachineApp extends Application {
|
30
|
30
|
GridPane grid;
|
31
|
31
|
|
32
|
32
|
Stage primaryStage = new Stage();
|
33
|
|
- Scene scene1 = new Scene(login(primaryStage),400,200);
|
|
33
|
+ Scene scene1 = new Scene(login(),400,200);
|
34
|
34
|
Scene scene2 = new Scene(createContent(), 500, 500);
|
35
|
35
|
|
36
|
|
- public Parent login(Stage primaryStage){
|
|
36
|
+ public Parent login(){
|
37
|
37
|
grid = new GridPane();
|
38
|
38
|
grid.setAlignment(Pos.CENTER);
|
39
|
39
|
grid.setHgap(10);
|
|
@@ -46,8 +46,6 @@ public class CashMachineApp extends Application {
|
46
|
46
|
hbButton.getChildren().add(btn);
|
47
|
47
|
grid.add(hbButton,1,4);
|
48
|
48
|
|
49
|
|
- //btn.setOnAction(e->primaryStage.setScene(scene2));
|
50
|
|
- primaryStage.setScene(scene1);
|
51
|
49
|
primaryStage.setTitle("Welcome to Zip Cloud Bank");
|
52
|
50
|
Label userID = new Label("User I.D.");
|
53
|
51
|
grid.add(userID,0,1);
|
|
@@ -107,7 +105,6 @@ public class CashMachineApp extends Application {
|
107
|
105
|
@Override
|
108
|
106
|
public void start(Stage stage){
|
109
|
107
|
this.primaryStage = stage;
|
110
|
|
- stage.setTitle("Zip Cloud Bank");
|
111
|
108
|
stage.setScene(scene1);
|
112
|
109
|
stage.isResizable();
|
113
|
110
|
stage.show();
|