[求助]Applet程序出错了
import java.awt.Graphics;
import java.applet.Applet;
import javax.swing.*;
public class AppletLifeDemo extends Applet {
/**
* This is the default constructor
*/
public AppletLifeDemo() {
super();
String infor =new String ();
public void init(){
AddItem("Applet生命怀孕期");
}
public void start(){
AddItem("Apple生命开始");
}
public void stop (){
AddItem("Applet生命暂时停止");
}
public void destroy (){
AddItem("Applet生命结束");
}
void AddItem(String lifeInfor){
infor +=lifeInfor;
javax.swing.JOptionPane.showMessageDialog(null, lifeInfor);
repaint();
}
public void paint (Graphics g){
g.drawString(infor.toString(), 5, 15);
}
}
/**
* This method initializes this
*
* @return void
*/
}
帮忙修改下