jakx12 0 Junior Poster

Ok so I have a couple questions on JavaFX. I have three javaFX scripts all of which contain their own scene and stage. However, I want a main class or script to decide when to open and when to close the current stage. So for example, the user will be able to chose whether to have the window as a sidebar or as a full on window. How would I do this using the code I have already written. Would I use a java Main method or have a javaFX script that manages all that.

Also I have found that this effect can be achieved by having multiple scenes. However, my scenes are really big and therefore it would be horrible coding to have them all in the same stage and therefore the same javafx script. So is there a way to store the scenes in in javafx scripts and like import them or something?

Sorry but I have no idea how to this. I have searched everywhere and havnt found anything decent.


Many thanks,

jakx12