Screen.getMonitorAtWindow

Returns the number of the monitor in which the largest area of the bounding rectangle of window resides.

More...
class Screen
int
getMonitorAtWindow

Parameters

window Window

Return Value

Type: int

the monitor number in which most of window is located, or if window does not intersect any monitors, a monitor, close to window.

Detailed Description

Deprecated: Use Display.getMonitorAtWindow instead

Meta