No parent has been specified. I posted some sample code which
demonstrates this problem and it should appear online shortly.
Thanks,
Cliff.
> No parent has been specified. I posted some sample code which
> demonstrates this problem and it should appear online shortly.
> Thanks,
> Cliff.
Make the modal dialog the owner of the sub-dialog. The API docs for Dialog
(from which JDialog is sub-classed) describe this:
"A dialog can be either modeless (the default) or modal. A modal dialog is
one which blocks input to all other toplevel windows in the application,
except for any windows created with the dialog as their owner."
i.e.
subDialog = new JDialog(modalDialog);

Signature
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555