What is the difference between a JFrame and a JDialog?
JFrame
JDialog
Why can\'t we use setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE); for a JD
setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE);
You can also use setModal(boolean t); This only works on JDialog. User must operate on JDialog not other window. If they wanna operate owner windows, they must shut down this JDialog.
setModal(boolean t);