| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.awt.image | Provides classes for creating and modifying images. | 
| javax.print | Provides the principal classes and interfaces for the 
JavaTM Print Service API. | 
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| Modifier and Type | Method and Description | 
|---|---|
| GraphicsConfiguration | GraphicsDevice. getBestConfiguration(GraphicsConfigTemplate gct)Returns the "best" configuration possible that passes the
 criteria defined in the  GraphicsConfigTemplate. | 
| abstract GraphicsConfiguration | GraphicsConfigTemplate. getBestConfiguration(GraphicsConfiguration[] gc)Returns the "best" configuration possible that passes the
 criteria defined in the  GraphicsConfigTemplate. | 
| abstract GraphicsConfiguration[] | GraphicsDevice. getConfigurations()Returns all of the  GraphicsConfigurationobjects associated with thisGraphicsDevice. | 
| abstract GraphicsConfiguration | GraphicsDevice. getDefaultConfiguration()Returns the default  GraphicsConfigurationassociated with thisGraphicsDevice. | 
| abstract GraphicsConfiguration | Graphics2D. getDeviceConfiguration()Returns the device configuration associated with this
  Graphics2D. | 
| GraphicsConfiguration | Component. getGraphicsConfiguration()Gets the  GraphicsConfigurationassociated with thisComponent. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract GraphicsConfiguration | GraphicsConfigTemplate. getBestConfiguration(GraphicsConfiguration[] gc)Returns the "best" configuration possible that passes the
 criteria defined in the  GraphicsConfigTemplate. | 
| ImageCapabilities | Image. getCapabilities(GraphicsConfiguration gc)Returns an ImageCapabilities object which can be
 inquired as to the capabilities of this
 Image on the specified GraphicsConfiguration. | 
| Insets | Toolkit. getScreenInsets(GraphicsConfiguration gc)Gets the insets of the screen. | 
| abstract boolean | GraphicsConfigTemplate. isGraphicsConfigSupported(GraphicsConfiguration gc)Returns a  booleanindicating whether or
 not the specifiedGraphicsConfigurationcan be
 used to create a drawing surface that supports the indicated
 features. | 
| Constructor and Description | 
|---|
| Canvas(GraphicsConfiguration config)Constructs a new Canvas given a GraphicsConfiguration object. | 
| Dialog(Dialog owner,
      String title,
      boolean modal,
      GraphicsConfiguration gc)Constructs an initially invisible  Dialogwith the
 specified ownerDialog, title, modality andGraphicsConfiguration. | 
| Dialog(Frame owner,
      String title,
      boolean modal,
      GraphicsConfiguration gc)Constructs an initially invisible  Dialogwith the specified ownerFrame, title, modality, andGraphicsConfiguration. | 
| Dialog(Window owner,
      String title,
      Dialog.ModalityType modalityType,
      GraphicsConfiguration gc)Constructs an initially invisible  Dialogwith the
 specified ownerWindow, title, modality andGraphicsConfiguration. | 
| Frame(GraphicsConfiguration gc)Constructs a new, initially invisible  Framewith the
 specifiedGraphicsConfiguration. | 
| Frame(String title,
     GraphicsConfiguration gc)Constructs a new, initially invisible  Frameobject
 with the specified title and aGraphicsConfiguration. | 
| Window(Window owner,
      GraphicsConfiguration gc)Constructs a new, initially invisible window with the specified owner
  Windowand aGraphicsConfigurationof a screen device. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract int | VolatileImage. validate(GraphicsConfiguration gc)Attempts to restore the drawing surface of the image if the surface
 had been lost since the last  validatecall. | 
| Modifier and Type | Method and Description | 
|---|---|
| static PrintService | ServiceUI. printDialog(GraphicsConfiguration gc,
           int x,
           int y,
           PrintService[] services,
           PrintService defaultService,
           DocFlavor flavor,
           PrintRequestAttributeSet attributes)Presents a dialog to the user for selecting a print service (printer). | 
| Constructor and Description | 
|---|
| JDialog(Dialog owner,
       String title,
       boolean modal,
       GraphicsConfiguration gc)Creates a dialog with the specified title, owner  Dialog,
 modality andGraphicsConfiguration. | 
| JDialog(Frame owner,
       String title,
       boolean modal,
       GraphicsConfiguration gc)Creates a dialog with the specified title,
 owner  Frame, modality andGraphicsConfiguration. | 
| JDialog(Window owner,
       String title,
       Dialog.ModalityType modalityType,
       GraphicsConfiguration gc)Creates a dialog with the specified title, owner  Window,
 modality andGraphicsConfiguration. | 
| JFrame(GraphicsConfiguration gc)Creates a  Framein the specifiedGraphicsConfigurationof
 a screen device and a blank title. | 
| JFrame(String title,
      GraphicsConfiguration gc)Creates a  JFramewith the specified title and the
 specifiedGraphicsConfigurationof a screen device. | 
| JWindow(GraphicsConfiguration gc)Creates a window with the specified  GraphicsConfigurationof a screen device. | 
| JWindow(Window owner,
       GraphicsConfiguration gc)Creates a window with the specified owner window and
  GraphicsConfigurationof a screen 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, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.