Reputation: 363
I have a web application where users log on to the site in the main page, once they are logged in I would like to display a different "page" or scene. How can I change the scene that is being displayed currently in the stage without creating additional windows? All help is greatly appreciated.
Upvotes: 2
Views: 3623
Reputation: 34498
Scene page2 = new Scene(new Group(new Text(25,25,"Page 2!")));
stage.setScene(page2);
Upvotes: 2