R
Ramon
Hi,
I'm trying to make a class that inherits from JDialog. The dialog has
two buttons: Ok and Cancel. When the OK button is clicked, the main
form is trying to read a result that is stored in the dialog's variable.
Question: Is there a safe way how to read a dialog's instance variable
(using a getter) after the dialog is set to invisible (i.e.
this.setVisible(false)) ?
PS: In general I am able to read the dialog's variables but, apparently,
sometimes the dialog is destroyed by the garbage collector...
Thanks.
I'm trying to make a class that inherits from JDialog. The dialog has
two buttons: Ok and Cancel. When the OK button is clicked, the main
form is trying to read a result that is stored in the dialog's variable.
Question: Is there a safe way how to read a dialog's instance variable
(using a getter) after the dialog is set to invisible (i.e.
this.setVisible(false)) ?
PS: In general I am able to read the dialog's variables but, apparently,
sometimes the dialog is destroyed by the garbage collector...
Thanks.