change the switchRoot method
This commit is contained in:
parent
a043cb487f
commit
af3489d078
@ -24,14 +24,15 @@ public class Controller extends Application {
|
||||
root = new MenuAcceuil();
|
||||
stage = primaryStage;
|
||||
stage.setTitle("ROAD TO MASTER");
|
||||
stage.setScene(new Scene(root));
|
||||
switchRoot(root);
|
||||
stage.show();
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static void switchRoot(Parent root){
|
||||
stage.setScene(new Scene(root));
|
||||
Scene scene = new Scene(root);
|
||||
stage.setScene(scene);
|
||||
}
|
||||
public static void main(String[] args) {
|
||||
launch();
|
||||
|
Loading…
Reference in New Issue
Block a user