建窗口
Frame frame=new Frame("Run as application");
AppletApplication app=new AppletApplication();
frame.add("Center",app);
frame.setSize(200,150);
frame.validate();
frame.setVisible(true);
frame.addWindowListener(new WindowControl(app));
画图
public void paint(Graphics g)
{
g.drawString("welcom to here!",50,60);
}