This is the scenario:
- add windowOpened() handler to new instance of JDialog
- show dialog for the first time using jdialog.setVisible(true)
- as expected: windowOpened() handler triggered
- jdialog.setVisible(false)
- jdialog.setVisible(true)
- expected, but not happened: windowOpened() handler triggered
How do I handle situation when my modal dialog appeared on the screen whenever it was first time or subsequent times I called setVisible(true) ?