S
shoa
Hello
I have a a JDialog (extends of JDialog class) object in that I have an
aPanel (extends of JPanel class). In this aPanel, I have button. When I
click this button, I want this dialog to close. Could you please tell me how
to do that.
I tried to use this function for the button:
this.getParent().dispose() //obtain the parent (JDialog) then dispose it
but this function does not work
Thank you
S.Hoa
I have a a JDialog (extends of JDialog class) object in that I have an
aPanel (extends of JPanel class). In this aPanel, I have button. When I
click this button, I want this dialog to close. Could you please tell me how
to do that.
I tried to use this function for the button:
this.getParent().dispose() //obtain the parent (JDialog) then dispose it
but this function does not work
Thank you
S.Hoa