Display.getMonitorAtPoint

Gets the monitor in which the point (x, y) is located, or a nearby monitor if the point is not in any monitor.

class Display
getMonitorAtPoint
(
int x
,
int y
)

Parameters

x int

the x coordinate of the point

y int

the y coordinate of the point

Return Value

Type: MonitorG

the monitor containing the point

Meta

Since

3.22