Mang venama hadala tiyana frame ekak JDialog ekak vidiyata call karanna puluvanda???
Puluwan. Mehemai, mulinma oya child frame ake constructor eken Parent frame eke reference ekak ganna. Ita passe Chid frame ake WindowClosing event eka override karala eke liyanna parent frame eka enable karanna kiyala. Eg:-
Write this on the Parent first.
Child c = new Child(this);
this.setEnabled(false);
c.setVisible(true);
Now write this on the Child class
public class Child{
Parent p;
public Child(Parent p){
this.p = p;
}
addWindowListener(WindowAdapter() {
public void windowClosing(WindowEvent evt) {
p.setEnabled(true);
setVisible(false);
}
});