Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

the name of the Jform I am using

Name: Anonymous 2012-12-04 15:43

How can I get the name of the Jform I am using?

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.

Name: Anonymous 2012-12-04 20:56

private void myWindowClosing(java.awt.event.WindowEvent evt) {                               
        final WindowInsertPacient jFrame = this;
        addWindowListener(new java.awt.event.WindowAdapter() {
            @Override
            public void windowClosing(java.awt.event.WindowEvent windowEvent) {
                jFrame.setVisible(false);
                jFrame.dispose();
                father.setEnabled(true);
            }
        });
    }

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List