Uses of Class java.awt.DisplayMode (Java Platform SE 8 )
Date: 2026-06-25

## Uses of Class
java.awt.DisplayMode

- Packages that use DisplayMode
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.

- - ### Uses of DisplayMode in java.awt

    Methods in java.awt that return DisplayMode
    Modifier and Type | Method and Description
    --- | ---
    `DisplayMode` | GraphicsDevice.`getDisplayMode()` Returns the current display mode of this `GraphicsDevice`.
    `DisplayMode[]` | GraphicsDevice.`getDisplayModes()` Returns all display modes available for this `GraphicsDevice`.

    Methods in java.awt with parameters of type DisplayMode
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | DisplayMode.`equals(DisplayMode dm)` Returns whether the two display modes are equal.
    `void` | GraphicsDevice.`setDisplayMode(DisplayMode dm)` Sets the display mode of this graphics device.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.