Window::useFullScreen()
Makes the window fill the whole screen.
Call it before the first stage is created, because the size of the window is settled the moment it opens:
public static void main(String[] args) {
Window.useFullScreen();
new MyStage();
}
Syntax
Java
.useFullScreen()
Return
void