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);
There are some JDialog constructors with a owner parameter which can be a Frame, a Dialog or a Window. A non-null value also makes the JDialog stay above his owner. This is complementary of the modal behavior described by Fortran.
owner
Frame
Dialog
Window