Artur G Vieira
Artur G Vieira

Reputation: 363

How to add additional scenes to a Stage in JavaFx 2.0

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

Answers (1)

Sergey Grinev
Sergey Grinev

Reputation: 34498

Scene page2 = new Scene(new Group(new Text(25,25,"Page 2!")));
stage.setScene(page2);

Upvotes: 2

Related Questions