双击NETBEANS中的“登录”按钮,或在Click事件上添加事件监听器(ActionListener)
btnLogin.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { this.setVisible(false); new FrmMain().setVisible(true); // Main Form to show after the Login Form.. }});


