Thursday, January 2, 2014

Java Desktop Applicaiotn in Netbeans: To open a JFrame by clicking a button of another

Double click the specific button in the add the Event Listener on Click Event (ActionListener) 
 
 
public void actionPerformed(ActionEvent e) {
        //  this.setVisible(false);
        this.dispose();
        new FrmMain().setVisible(true); // Main Form to show after the Login Form..
    }

No comments: