yes, I am doing the same.
But even then the dialog appears on top of parent window after selecting the parent window.
The JDiaog window is still shown on top of parent window but is inactive state (i.e. not selected/focused). It hinders the view of parent window when doing any operation on parent window.
Priya Lavti wrote:yes, I am doing the same.
But even then the dialog appears on top of parent window after selecting the parent window.
The JDiaog window is still shown on top of parent window but is inactive state (i.e. not selected/focused). It hinders the view of parent window when doing any operation on parent window.
JDialog is by default always non-modal ... if not explicitly specified otherwise:
- via constructor --> boolean flag
- or via method call setModal(boolean)