| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| 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 | Class and Description | 
|---|---|
| class  | FileDialogThe  FileDialogclass displays a dialog window
 from which the user can select a file. | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract java.awt.peer.DialogPeer | Toolkit. createDialog(Dialog target)Creates this toolkit's implementation of  Dialogusing
 the specified peer interface. | 
| Constructor and Description | 
|---|
| Dialog(Dialog owner)Constructs an initially invisible, modeless  Dialogwith
 the specified ownerDialogand an empty title. | 
| Dialog(Dialog owner,
      String title)Constructs an initially invisible, modeless  Dialogwith the specified ownerDialogand title. | 
| Dialog(Dialog owner,
      String title,
      boolean modal)Constructs an initially invisible  Dialogwith the
 specified ownerDialog, title, and modality. | 
| Dialog(Dialog owner,
      String title,
      boolean modal,
      GraphicsConfiguration gc)Constructs an initially invisible  Dialogwith the
 specified ownerDialog, title, modality andGraphicsConfiguration. | 
| FileDialog(Dialog parent)Creates a file dialog for loading a file. | 
| FileDialog(Dialog parent,
          String title)Creates a file dialog window with the specified title for loading
 a file. | 
| FileDialog(Dialog parent,
          String title,
          int mode)Creates a file dialog window with the specified title for loading
 or saving a file. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | JDialogThe main class for creating a dialog window. | 
| Constructor and Description | 
|---|
| JDialog(Dialog owner)Creates a modeless dialog with the specified  Dialogas its owner and an empty title. | 
| JDialog(Dialog owner,
       boolean modal)Creates a dialog with an empty title and the specified modality and
  Dialogas its owner. | 
| JDialog(Dialog owner,
       String title)Creates a modeless dialog with the specified title and
 with the specified owner dialog. | 
| JDialog(Dialog owner,
       String title,
       boolean modal)Creates a dialog with the specified title, modality
 and the specified owner  Dialog. | 
| JDialog(Dialog owner,
       String title,
       boolean modal,
       GraphicsConfiguration gc)Creates a dialog with the specified title, owner  Dialog,
 modality andGraphicsConfiguration. | 
 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.