Scratch for Java

Window::useFullScreen()

Browser availability: desktop-only.

The embedded browser output uses its enclosing page; this desktop window option only reports a limitation.

Opens the window full screen (a borderless window at the screen's size). Call it before new Window.

Examples

This example requires the desktop runtime in the current browser revision.

void main() {
  // Has to be said before the window is built, because it decides how the
  // window is made. Only the desktop version can go fullscreen.
  Window.useFullScreen();
  Window myWindow = new Window();
  myWindow.setStage(new Stage());
}
 

View on GitHub

Syntax

Java

.useFullScreen()

Return

void

useFullScreen()

Create Shareable URL

Select Sections