I am making a game using JavaFX and quite simply what I want to do is have a Start page with a Start button on it. When this button is clicked I want it to go to the actual game but without opening up another window in the GUI. So when I click the start button, it changes from a start screen to the game screen in the same window.

I have looked through the JavaFX website and can't seem to find anything related to that, only things like changing the actual button itself when clicked etc.

Just wondering if someone can provide some sample code on how to do this or even any links that show how to do it as I've looked around and can't find anything.

Any help most appreciated.