yangxin
发贴: 5
积分: 0
|
于 2005-10-16 07:40
各位同志好,小弟刚JAVA,因为自学,书后又无答案,所以遇到这问题就给难住了,希望各位能帮帮忙,谢谢了. 我编写了一小段代码,如下: // Created by Rocky // Practice Applet // // /////////////////////////// import java.awt.Graphics; import java.applet.Applet; public class PracticeApplet extends Applet { public void mydraw(Graphics g) { g.drawString("* * * * * * * * * * * * * * * * * * * * * * * * *",25,18); g.drawString("* * Practice makes Perfect!",26,18); g.drawString("* * * * * * * * * * * * * * * * * * * * * * * * *",27,18); } // end of method: mydraw } // end of class: PracticeApplet 编译能通过,但执行时APPLET查看器里并无显示内容,我真想不透是怎么回事.请各位高手帮帮我吧.
|