Microsoft SDK for Java

getDesktopResolution

This method of the DisplayDevice Class retrieves the display device desktop resolution.

Syntax

public Dimension getDesktopResolution();

Return Value

Returns the dimensions of the desktop resolution. This is commonly one of the resolutions shown in the following table.

480 x     640
600 x     800
768 x   1024
864 x   1152
1024 x 1280

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