Topic: Applet程序 |
Print this page |
1.Applet程序 | Copy to clipboard |
Posted by: liujing319 Posted on: 2005-01-24 11:31 我在编译一个Applet程序的时候出现如下错误 package Java.awt does not exit package Java.applet does not exit cant not resolve symbol symbol:class Applet location:class helloword 源代码如下: import Java.awt.Graphics; import Java.applet.Applet; public class helloword extends Applet { String thetext; public void init() { thetext="Hello the Word!"; } public void paint(Graphics g) { g.drawString(thetext,25,25); } } |
2.Re:Applet程序 [Re: liujing319] | Copy to clipboard |
Posted by: BarryWhite Posted on: 2005-01-26 18:07 change the codes like this: import java.awt.Graphics; import java.applet.Applet; ...... then,that will be OK! |
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 |