r/JavaFX • u/geneziz • May 28 '16
Calling different screens from one (main) JAVA FX application
So I got an assignment(no FXML either..) with a few requirements, first there need to be a few screens in different classes/applications. And one application which calls and handles them all. I know you can switch scenes in one application. But I have really no idea how I can switch scenes(or stages) between multiple applications.
1
Upvotes
2
u/scyth3s May 28 '16
Sounds like you're talking about using multiple stages rather than switching scenes. I'm short on time so I can't write a full example. I can, however refer you to a personal project that does this, if you know how to use Git.
Https://Www.github.com/dangerdandev/jot.git.
The Window Manager class and it's sub interface window should help you out.
Don't judge the program too hardly, anyone who looks. It's going through a lot of changes!