360皮肤中心-recovery恢复模式
![actionlistener](/uploads/image/0341.jpg)
2023年4月6日发(作者:z830)
⽤javagui毕业设计题⽬_Javaswing开发的GUI图书馆后台管理
系统,可做为ja。。。
【实例简介】
【实例截图】
【核⼼代码】
packagegui;
ueue;
eld;
Event;
Listener;
;
;
nPane;
ordField;
ield;
n;
oImpl;
_user;
/**
*@authorggg
*
*/
publicclassLoginUI{
privateJFrameframe;
privateJTextFieldtextField;
privateJTextFieldtextField_1;
UserDaoImpluserdao=newUserDaoImpl();
/**
*Launchtheapplication.
*/
publicstaticvoidmain(String[]args){
Later(newRunnable(){
publicvoidrun(){
try{
LoginUIwindow=newLoginUI();
ible(true);
}catch(Exceptione){
tackTrace();
}
}
});
}
/**
*Createtheapplication.
*/
publicLoginUI(){
initialize();
}
/**
*Initializethecontentsoftheframe.
*/
privatevoidinitialize(){
frame=newJFrame();
le("图书进存销系统");
nds(100,100,420,300);
aultCloseOperation(_ON_CLOSE);
tentPane().setLayout(null);
JLabellabel=newJLabel("账户:");
nds(55,75,72,18);
tentPane().add(label);
textField=newJTextField();
nds(111,72,260,24);
tentPane().add(textField);
umns(10);
JLabellabel_1=newJLabel("密码:");
label_nds(55,145,72,18);
tentPane().add(label_1);
JPasswordFieldpasswordField=newJPasswordField();
nds(111,142,260,24);
tentPane().add(passwordField);
JButtonbutton=newJButton("登录");
nds(258,199,113,27);
tentPane().add(button);
ionListener(newActionListener(){
@Override
publicvoidactionPerformed(ActionEventarg0){
//TODOAuto-generatedmethodstub
Stringname=t();
Stringupass=f(sword());
lay_userusr=newlay_user();
e(name);
sword(upass);
if(yName(name)!=null){
ssageDialog(null,"成功");
ible(false);
BuyUIbuyui=newBuyUI();
ible(true);
}else{
n("失败");
}
}
});
}
}
更多推荐
actionlistener
发布评论