Java开发网 |
注册 |
登录 |
帮助 |
搜索 |
排行榜 |
发帖统计
|
您没有登录 |
» Java开发网 » Java SE 综合讨论区
打印话题 寄给朋友 订阅主题 |
作者 | 小弟求救!(aaa is not abstract and does not override abstract method) |
sss6586576
发贴: 10 积分: 0 |
于 2004-10-10 10:08
{ 请尽量用准确的文字描述作为标题 } 小弟求救!弄了一个上午,也不知是咋回事. import java.awt.*; import java.applet.*; import java.awt.event.*; public class aaa extends Applet implements WindowListener/*,ActionListener*/ { public aaa() { super(); Panel p=new Panel(); Button b1=new Button(); Button b2=new Button(); Button b3=new Button(); TextField t=new TextField(10); b1.setLabel("1"); b2.setLabel("2"); b3.setLabel("+"); /*b1.addActionListener(this);???????为什么不让俺注册呢!!! b2.addActionListener(this); b3.addActionListener(this);*/ p.add(b1); p.add(b2); p.add(b3); add; add; p.setVisible(true); } public void windowClosing(WindowEvent aaa){System.exit(1);} public void windowOpened(WindowEvent e){} public void windowIconified(WindowEvent e){} public void windowDeiconified(WindowEvent e){} public void windowClosed(WindowEvent e){} public void windowActivated(WindowEvent e){} public void windowDeactivated(WindowEvent e){} /*public void actionPerformed(ActionEvent e, Object O) { String s; int n; s=e.getActionCommand(); */ 请问e.getsource怎么用呀?? 谢谢各位大侠.小弟已经抓狂了!!!! G:\java\11\aaa.java:6: aaa is not abstract and does not override abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener public class aaa extends Applet implements WindowListener,ActionListener 这到底是什么意思呀???我就是不懂呀.哪位大侠能帮帮我呀!谢谢!!!!!!!!!!!!!!!!!!!!!!!!
why edited on 2004-10-10 12:58
IBM Rational Software Architect V8.5 |
话题树型展开 |
人气 | 标题 | 作者 | 字数 | 发贴时间 |
6482 | 小弟求救!(aaa is not abstract and does not override abstract method) | sss6586576 | 1433 | 2004-10-10 10:08 |
4786 | Re:小弟求救!弄了一个上午,也不知是咋回事. | archonLing | 185 | 2004-10-10 10:16 |
4695 | Re:小弟求救!弄了一个上午,也不知是咋回事. | sss6586576 | 16 | 2004-10-10 10:23 |
4745 | Re:小弟求救!弄了一个上午,也不知是?厥拢?></td></tr><tr class= | archonLing | 530 | 2004-10-10 10:27 |
4718 | Re:小弟求救!弄了一个上午,也不知是咋回事. | caike | 117 | 2004-10-10 13:02 |
4499 | Re:小弟求救!(aaa is not abstract and does not override abstract method) | kiffen | 46 | 2004-10-11 17:06 |
5049 | Re:小弟求救!(aaa is not abstract and does not override abstract method) | cjyzpcl | 88 | 2004-10-12 14:33 |
已读帖子 新的帖子 被删除的帖子 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |