javax.swing
public class JDialog extends Dialog implements Accessible, WindowConstants, RootPaneContainer
java.awt.Dialog
s, JDialogs support the
Swing Pluggable Look & Feel architecture.
Nested Class Summary | |
---|---|
protected class | JDialog.AccessibleJDialog
Provides accessibility support for JDialog s. |
Field Summary | |
---|---|
protected AccessibleContext | accessibleContext DOCUMENT ME! |
protected JRootPane | rootPane The single RootPane in the Dialog. |
protected boolean | rootPaneCheckingEnabled
Whether checking is enabled on the RootPane.
|
Constructor Summary | |
---|---|
JDialog() | |
JDialog(Dialog owner)
Creates a new non-modal JDialog with no title
using the given owner.
| |
JDialog(Dialog owner, boolean modal)
Creates a new JDialog with no title using the
given modal setting and owner.
| |
JDialog(Dialog owner, String title)
Creates a new non-modal JDialog using the
given title and owner.
| |
JDialog(Dialog owner, String title, boolean modal)
Creates a new JDialog using the given modal
settings, title, and owner.
| |
JDialog(Dialog owner, String title, boolean modal, GraphicsConfiguration gc)
Creates a new JDialog using the given modal
settings, title, owner and graphics configuration.
| |
JDialog(Frame owner)
Creates a new non-modal JDialog with no title
using the given owner.
| |
JDialog(Frame owner, boolean modal)
Creates a new JDialog with no title using the
given modal setting and owner.
| |
JDialog(Frame owner, String title)
Creates a new non-modal JDialog using the
given title and owner.
| |
JDialog(Frame owner, String title, boolean modal)
Creates a new JDialog using the given modal
settings, title, and owner.
| |
JDialog(Frame owner, String title, boolean modal, GraphicsConfiguration gc)
Creates a new JDialog using the given modal
settings, title, owner and graphics configuration.
|
Method Summary | |
---|---|
protected void | addImpl(Component comp, Object constraints, int index)
This method is called when a component is added to the
the JDialog. |
protected JRootPane | createRootPane()
This method creates a new JRootPane.
|
protected void | dialogInit()
This method is called to initialize the
JDialog. |
AccessibleContext | getAccessibleContext()
DOCUMENT ME!
|
Container | getContentPane()
This method returns the ContentPane
in the JRootPane.
|
int | getDefaultCloseOperation()
This method returns the action taken when
the JDialog is closed.
|
Component | getGlassPane()
This method returns the GlassPane for this JDialog.
|
JMenuBar | getJMenuBar()
This method returns the JMenuBar used
in this JDialog.
|
JLayeredPane | getLayeredPane()
This method returns the JLayeredPane used with this JDialog.
|
Dimension | getPreferredSize()
This method returns the preferred size of
the JDialog.
|
JRootPane | getRootPane()
This method returns the JRootPane used with this JDialog.
|
static boolean | isDefaultLookAndFeelDecorated()
This method returns whether JDialogs will have their
window decorations provided by the Look and Feel.
|
protected boolean | isRootPaneCheckingEnabled()
This method returns whether rootPane checking is enabled.
|
protected String | paramString()
This method returns a String describing the JDialog.
|
protected void | processWindowEvent(WindowEvent e)
This method handles window events. |
void | remove(Component comp)
This method removes a component from the JDialog.
|
void | setContentPane(Container contentPane)
This method sets the ContentPane to use with this
JDialog. |
void | setDefaultCloseOperation(int operation)
This method sets the action to take
when the JDialog is closed.
|
static void | setDefaultLookAndFeelDecorated(boolean defaultLookAndFeelDecorated)
This method sets whether JDialogs will have their
window decorations provided by the Look and Feel.
|
void | setGlassPane(Component glassPane)
This method sets the GlassPane for this JDialog.
|
void | setJMenuBar(JMenuBar menubar)
This method sets the JMenuBar used
in this JDialog.
|
void | setLayeredPane(JLayeredPane layeredPane)
This method sets the JLayeredPane used in the JDialog.
|
void | setLayout(LayoutManager manager)
This method sets the LayoutManager used in the JDialog.
|
protected void | setRootPane(JRootPane root)
This method sets the JRootPane used with this JDialog.
|
protected void | setRootPaneCheckingEnabled(boolean enabled)
This method sets whether rootPane checking is enabled.
|
void | update(Graphics g)
This method simply calls paint and returns.
|
UNKNOWN: Should be false to comply with J2SE 5.0
Parameters: owner The owner of the JDialog.
Parameters: owner The owner of the JDialog. modal Whether the JDialog is modal.
Parameters: owner The owner of the JDialog. title The title of the JDialog.
Parameters: owner The owner of the JDialog. title The title of the JDialog. modal Whether the JDialog is modal.
Parameters: owner The owner of the JDialog. title The title of the JDialog. modal Whether the JDialog is modal. gc The Graphics Configuration to use.
Parameters: owner The owner of the JDialog.
Parameters: owner The owner of the JDialog. modal Whether the JDialog is modal.
Parameters: owner The owner of the JDialog. title The title of the JDialog.
Parameters: owner The owner of the JDialog. title The title of the JDialog. modal Whether the JDialog is modal.
Parameters: owner The owner of the JDialog. title The title of the JDialog. modal Whether the JDialog is modal. gc The Graphics Configuration to use.
Parameters: comp The component to add. constraints The constraints. index The position of the component.
Returns: A new JRootPane.
Returns: DOCUMENT ME!
Returns: The ContentPane in the JRootPane.
Returns: The action to take.
Returns: The GlassPane for this JDialog.
Returns: The JMenuBar in the JDialog.
Returns: The JLayeredPane used with this JDialog.
Returns: The preferred size.
Returns: The JRootPane used with this JDialog.
Returns: Whether the window decorations are Look and Feel provided.
Returns: Whether rootPane checking is enabled.
Returns: A String describing the JDialog.
Parameters: e The WindowEvent.
Parameters: comp The component to remove.
Parameters: contentPane The ContentPane to use with the JDialog.
Parameters: operation The action to take.
Parameters: defaultLookAndFeelDecorated Whether the window decorations are Look and Feel provided.
Parameters: glassPane The GlassPane for this JDialog.
Parameters: menubar The JMenuBar to use.
Parameters: layeredPane The JLayeredPane to use.
Parameters: manager The LayoutManager to use.
Parameters: root The JRootPane to use.
Parameters: enabled Whether rootPane checking is enabled.
Parameters: g The Graphics object to paint with.