What is the difference between a JFrame and a JDialog?

前端 未结 4 570
深忆病人
深忆病人 2021-02-03 22:16

What is the difference between a JFrame and a JDialog?

Why can\'t we use setDefaultCloseOperation(JDialog.EXIT_ON_CLOSE); for a JD

4条回答
  •  遇见更好的自我
    2021-02-03 22:24

    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.

提交回复
热议问题