看一下代码有哪里错了 public void actionPerformed(ActionEvent e) {if(e.getSource()==i
看一下代码有哪里错了publicvoidactionPerformed(ActionEvente){if(e.getSource()==itemAdmiqh){this....
看一下代码有哪里错了
public void actionPerformed(ActionEvent e) {if(e.getSource()==itemAdmiqh){this.dispose();In winin=new In("系统登陆");}if(e.getSource()==itemtc){System.exit(0);} if(e.getSource()==itemAdmixj){CreatAdmi creatAdmi=new CreatAdmi("管理员添加");}if(e.getSource()==itemAdmirz){WinTable wintable=new WinTable("管理日志");}if(e.getSource()==itemBookrk){AddInfy addInfy=new AddInfy();}if(e.getSource()==itemPersonlr){Winpersonadd winperson=new Winpersonadd("读者添加");}if(e.getSource()==itemPersoncx){Winpersonsearch winperson=new Winpersonsearch("读者信息查询");}if(e.getSource()==itemPersonxg){Winpersonmodify winperson=new Winpersonmodify("读者信息修改");}if(e.getSource()==itemPersonsc){Winpersondelete winperson=new Winpersondelete("读者删除");}if(e.getSource()==itemBookcx){Windowjj ok=new Windowjj();}if(e.getSource()==itemchaoshi){day win=new day(); }if(e.getSource()==itemBorrowjs){Borrowbook win=new Borrowbook(); }if(e.getSource()==itemBorrowhs){Returnbook win=new Returnbook(); } } 展开
public void actionPerformed(ActionEvent e) {if(e.getSource()==itemAdmiqh){this.dispose();In winin=new In("系统登陆");}if(e.getSource()==itemtc){System.exit(0);} if(e.getSource()==itemAdmixj){CreatAdmi creatAdmi=new CreatAdmi("管理员添加");}if(e.getSource()==itemAdmirz){WinTable wintable=new WinTable("管理日志");}if(e.getSource()==itemBookrk){AddInfy addInfy=new AddInfy();}if(e.getSource()==itemPersonlr){Winpersonadd winperson=new Winpersonadd("读者添加");}if(e.getSource()==itemPersoncx){Winpersonsearch winperson=new Winpersonsearch("读者信息查询");}if(e.getSource()==itemPersonxg){Winpersonmodify winperson=new Winpersonmodify("读者信息修改");}if(e.getSource()==itemPersonsc){Winpersondelete winperson=new Winpersondelete("读者删除");}if(e.getSource()==itemBookcx){Windowjj ok=new Windowjj();}if(e.getSource()==itemchaoshi){day win=new day(); }if(e.getSource()==itemBorrowjs){Borrowbook win=new Borrowbook(); }if(e.getSource()==itemBorrowhs){Returnbook win=new Returnbook(); } } 展开
1个回答
2016-06-27
展开全部
你好,很高兴你能向我们团队求助。因为不清楚你的业务逻辑,先将出错代码修改如下:publicvoidactionPerformed(ActionEvente){if(text1.getText().equals("boy")){text2.setText("男孩");}elseif(text1.getText().equals("die")){boo=true;}else{text2.setText("没有该单词");}if(e.getSource()==fast){Scrollwords.interrupt();}}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询