singleton for JDialog
Hello
In my JFrame, I have button. When i click this button, a JDialog will be shown. As I set modal to false - I can access to both the main frame and the dialog. However, if i click the button second time (accidently), a new dialog will be shown. What I want is that if there is one JDialog, i donot want to have the second.
my code for displaying the dialog:
private void myBtnActionPerformed(java.awt.event.ActionEvent evt) {
(new NewDialog(this, false)).show();
}
Thank you for any help
shuhu

