change the switchRoot method
This commit is contained in:
		@ -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();
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user