Microsoft SDK for Java

Screen.fromRectangle

Returns a Screen object for the monitor that contains the largest portion of a specified rectangle.

Syntax

public static Screen fromRectangle( Rectangle rect )

Parameters

rect

A Rectangle object that specifies the area for which to retrieve the monitor.

Return Value

Returns a Screen object for the monitor that contains the largest region of the specified rectangle. If no monitor contains the rectangle, then the monitor closest to the rectangle is returned.

See Also   fromControl, fromHwnd, fromPoint

© 1999 Microsoft Corporation. All rights reserved. Terms of use.