Name: Anonymous 2012-12-04 15:43
How can I get the name of the Jform I am using?
It says cannot find symbol.
public class WindowInsertPacient extends javax.swing.JFrame {
private WindowMain father;
public WindowInsertPacient(WindowMain father) {
this.father = father;
initComponents();
}
private void myWindowClosing(java.awt.event.WindowEvent evt) {
Class enclosingClass = getClass().getEnclosingClass();
addWindowListener(new java.awt.event.WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent windowEvent) {
enclosingClass.this.setVisible(false);
enclosingClass.this.dispose();
father.setEnabled(true);
}
});
}It says cannot find symbol.