//程序:paint()方法的调用
//范例文件:CallPaint.javaimport java.awt.*;   //一定要制定使用此内集合
import java.applet.*;
public class CallPaint extends Applet
{
  public void init()
   {
    System.out.printIn("init()method...");
   }
  public void start()
   {
    System.out.printIn("start()method...");
   }
  public void paint(Graphics g)
   {
    //paint()方法在此
    //在坐标(10,50)绘制字符串
    g.drawString("xye,I love you!",10,50);
    //在主控台显示方法执行时机
    System.out.printIn("paint()method");
   }
  public void stop()
   {
    System.out.printIn("stop()method...");
   }
  public void destroy()
   {
    System.out.printIn("destroy()method...");
   }
}
  <!--net:CallPaint.html-->
  <html>
  <head><title>paint()method time</title></head>
  <body>
  <Applet code="CallPaint.class" width=200 height=200><Applet>
  </body>
  </html>
运行之后出现一下错误
D:\学习\Java\chxu\CallPaint.java:37: 'class' or 'interface' expected
  <!--net:CallPaint.html-->
为什么呢!还有我的j2se似乎不支持中文,因为程序中出现中文便会出现illegle character!