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();
|
root = new MenuAcceuil();
|
||||||
stage = primaryStage;
|
stage = primaryStage;
|
||||||
stage.setTitle("ROAD TO MASTER");
|
stage.setTitle("ROAD TO MASTER");
|
||||||
stage.setScene(new Scene(root));
|
switchRoot(root);
|
||||||
stage.show();
|
stage.show();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static void switchRoot(Parent root){
|
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) {
|
public static void main(String[] args) {
|
||||||
launch();
|
launch();
|
||||||
|
Loading…
Reference in New Issue
Block a user