0

我创建了一个小程序

java.lang.ClassCastException: ssg.com.client.Launcher cannot be cast to java.applet.Applet
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

这是我的代码:

package ssg.com.client.applet;

import java.applet.Applet;

public class GameApplet extends Applet
{

    private static final long serialVersionUID = -3949872561494573440L;

    public GameApplet()
    {

    }
}

小程序启动并显示,但我不喜欢代码中有错误。我能做些什么?

4

0 回答 0