wood burning stoves 2.0*
The moose likes JavaFX and the fly likes Switching over multiple windows with static GUI's Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Switching over multiple windows with static GUI Watch "Switching over multiple windows with static GUI New topic
Author

Switching over multiple windows with static GUI's

shalini chaurasia
Greenhorn

Joined: Jun 28, 2013
Posts: 9
Switching over multiple windows so that window should be static and content should be dynamic while switching.
John Damien Smith
Ranch Hand

Joined: Jan 26, 2012
Posts: 144
    
    9
Construct a new scene for the new content and invoke stage.setScene(nextScene) when you want to change the content.

If you just want to update a portion of the scene (e.g. a panel and not the whole scene), then replace the panel content with your new content.

If your application is fxml based and you want to load a new fxml for the new scene or have transitions between the scene content, then see this tutorial on managing multiple screens in JavaFX

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Switching over multiple windows with static GUI's