Solution
I think you refer to a maximize button, and perhaps the stage.setMaximized()
method.
Maximized != Full Screen
Setting the stage fullscreen viastage.setFullScreen()
is generally a different thing than maximizing a stage. A full screen stage operates in full screen exclusive mode (i.e. no windowing at all, the stage takes over the entire display).
Related
What you seem to be doing is creating an undecorated window (i.e. a window with no default OS window frame and no in-built controls for resizing, title and minimize/maximize/close), but you still want some of the functionality that you would get if the window were decorated (by adding your own custom decoration controls to provide it). For more information on how to tackle that problem, see the related question:
In particular, checkout the Undecorator project, which is the defacto standard way of supplying such functionality for JavaFX.