c******n 发帖数: 4965 | 1 【 以下文字转载自 Linux 讨论区 】
发信人: creation (yy), 信区: Linux
标 题: what's wrong with this simple applet?
发信站: BBS 未名空间站 (Mon Feb 20 20:03:02 2006), 站内
发信人: creation (yy), 信区: Programming
标 题: what's wrong with this simple applet?
发信站: BBS 未名空间站 (Mon Feb 20 20:02:57 2006), 转信
import java.awt.*;
public class MyApplet extends java.applet.Applet{
public void init(){
setLayout(new BorderLayout());
add("Center", new MyPane());
}
}
class MyPane extends Panel{}
the browser fails to execute the applet,
if I chan | c******n 发帖数: 4965 | 2 nevermind,
I think it probably has to do with cached bad .class
now I have to close browser every time I rewrite it.
but the stuff still does not work.
if I drawstring("asdfasdf", 10, 200000)
in the paint() of MyPane(),
it still freezes |
|