What is the difference between a JFrame and a JDialog?

前端 未结 4 621
深忆病人
深忆病人 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:50

    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.

提交回复
热议问题