JarClassLoader 的 AppletLauncher 类:
import javax.swing.JApplet;
public class MyAppletLauncher extends JApplet {
private JarClassLoader jcl;
@Override
public void init() {
jcl = new JarClassLoader();
try {
jcl.initApplet("MyApplet", this);
} catch (Throwable e) {
e.printStackTrace();
}
}
@Override
public void start() {
jcl.startApplet();
}
@Override
public void stop() {
jcl.stopApplet();
}
@Override
public void destroy() {
jcl.destroyApplet();
}
由此,我将我的小程序命名为 MyApplet,如上所示:
jcl.initApplet("MyApplet", this);
从<Applet> <param>
我将参数传递给这个 MyApplet。如何使用此 JarClassLoader AppletLauncher 将参数传递给此 MyApplet?