........
....
public void actionPerformed(ActionEvent e)
{ System.out.println(e.getActionCommand());
// String userid = new String(hmk.getText());
//String pwd= new String(mmk.getText());
if(e.getActionCommand().equals("登陆")==true)
{ /*if (userid.equals("zhoujian")==true)
{ MainPlam talkplam=new MainPlam();
talkplam.show();
this.hide();
}*/
}
if(e.getActionCommand().equals("取消")==true)
{System.exit(0); }
}
....
聊天室登陆界面的设计
/**/之间为第一次注释掉的//。。为第二次注释掉的,第二次如果不注释掉,无论第一次注释掉与否,取消功能的按钮都是先不了,不知为什么?谢
....
public void actionPerformed(ActionEvent e)
{ System.out.println(e.getActionCommand());
// String userid = new String(hmk.getText());
//String pwd= new String(mmk.getText());
if(e.getActionCommand().equals("登陆")==true)
{ /*if (userid.equals("zhoujian")==true)
{ MainPlam talkplam=new MainPlam();
talkplam.show();
this.hide();
}*/
}
if(e.getActionCommand().equals("取消")==true)
{System.exit(0); }
}
....
聊天室登陆界面的设计
/**/之间为第一次注释掉的//。。为第二次注释掉的,第二次如果不注释掉,无论第一次注释掉与否,取消功能的按钮都是先不了,不知为什么?谢
{System.exit(0); }