public JDialog(Frame owner, boolean modal) throws HeadlessExceptionCreates a modal or non-modal dialog without a title and with the specified owner Frame. If owner is null, a shared, hidden frame will be set as the owner of the dialog. This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale. Parameters:owner - the Frame from which the dialog is displayedmodal - true for a modal dialog, false for one that allows others windows to be active at the same time
boolean modal)
throws HeadlessExceptionCreates a modal or non-modal dialog without a title and with the specified owner Frame. If owner is null, a shared, hidden frame will be set as the owner of the dialog. This constructor sets the component's locale property to the value returned by JComponent.getDefaultLocale. Parameters:owner - the Frame from which the dialog is displayedmodal - true for a modal dialog, false for one that allows others windows to be active at the same time