Screen.getPrimary

Overview | Methods | Fields | This Package | All Packages

Screen.getPrimary

Retrieves a Screen object for the primary monitor.

Syntax

public static Screen getPrimary()

Return Value

Returns a Screen object for the primary monitor on the system. If the system contains only a single monitor, this method returns a Screen object for that monitor.

See Also   getAllScreens