I have a MyDialog
which extends JDialog
, when I close the MyDialog
it will take a time around 30 - 45 seconds. MyDialog
is a child form of my main form which is JFrame
and until MyDialog
is closed the focus can not come to main window. What will be the reason that MyDialog
take time to close the dialog?
For close operation I am setting:
setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE)