public abstract class AbstractLoginFrame extends JFrame {
protected JTextField txtUserName = new JTextField();//登录名文本框
protected JPasswordField txtPwd = new JPasswordField();//密码框
User user = new User(uName,pwd1);
MainAPP.userList.add(user);
JOptionPane.showMessageDialog(this, "注册成功!");
new LoginFrame().setVisible(true);
this.dispose();
}
protected void butClose(){
new LoginFrame().setVisible(true);
this.dispose();
}