What should I do to close a Applet? Use this.destroy() can't do that??????. u can't do to close a Applet . 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 程序中要我关闭一个APPLET,我该怎么去实现啊,高手……… 利用时间监听机制。在定义了Frame的对象aFrame后,在加上aFrame.addWindowListener(new WL());另外还要实现接口WindowListener,如class MyWindowListener extends WindowAdapter { public void windowClosing(WindowEvent e) { System.exit(0); }}可以让他作为一个内部类 哦,有一个地方写错了class MyWindowListener extends WindowAdapter改为class WL extends WindowAdapter 但是APPLET不是从WINDOWS中继承下来得啊。兄弟你说的方法不知道可以不? There is a button in the applet,if you push this button ,this the applet will be closed .how can I do that? 24点算法求助 我在my eclipse中打jar包时,打成了但是却没有图片,我想问一下怎么在上面打包,怎么把图片也带上!!! 给介绍两本讲java多线程的书 无法解析错误?? 看什么书可以提高性能和事务处理方面的知识? 照书上原样写的怎么会出错呢? 如何把HashMap中key,value都相同的过滤掉? 输入流 关于jmf的窗口关闭的问题,急急急 sql server 怎么在一个button被点击时,播放一段声音呢? 关于事件响应的问题????
在定义了Frame的对象aFrame后,在加上aFrame.addWindowListener(new WL());
另外还要实现接口WindowListener,如
class MyWindowListener extends WindowAdapter {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
}
可以让他作为一个内部类
class MyWindowListener extends WindowAdapter
改为
class WL extends WindowAdapter
兄弟你说的方法不知道可以不?
if you push this button ,this the applet will be closed .
how can I do that?