I have a JDialog that contains many controls for a simulation. I would
like to make it impossible for the user to close that dialog via the
close button. How do I do that?
TIA,
Ted
>I have a JDialog that contains many controls for a simulation. I would like
>to make it impossible for the user to close that dialog via the close
[quoted text clipped - 3 lines]
>
> Ted
from thejdialog api:
setDefaultCloseOperation
public void setDefaultCloseOperation(int operation)Sets the operation which
will happen by default when the user initiates a "close" on this dialog. The
possible choices are:
a.. DO_NOTHING_ON_CLOSE - do not do anything - require the program to
handle the operation in the windowClosing method of a registered
WindowListener object