JDialog
wrapping this
centered on the parentComponent
in the parentComponent
's frame. title
is the title of the returned dialog. The returned JDialog
will not be resizable by the user, however programs can invoke setResizable
on the JDialog
instance to change this property. The returned JDialog
will be set up such that once it is closed, or the user clicks on one of the buttons, the optionpane's value property will be set accordingly and the dialog will be closed. Each time the dialog is made visible, it will reset the option pane's value property to JOptionPane.UNINITIALIZED_VALUE
to ensure the user's subsequent action closes the dialog properly.
@param parentComponent determines the frame in which the dialog is displayed; if the parentComponent
has no Frame
, a default Frame
is used
@param title the title string for the dialog
@return a new JDialog
containing this instance
@throws HeadlessException if GraphicsEnvironment.isHeadless
returns true
@see java.awt.GraphicsEnvironment#isHeadless
|
|