我有一个扩展自 JApplet 的 Applet 和 5 个与此 JApplet 交互的其他类,但我需要将此 Applet 放在我的 HTML 页面中。
我怎样才能做到这一点 ?
我尝试以下代码
<applet archive="test.jar"
width="100" height="100">
</applet>
两个文件(HTML 和 JAR)都在 sme 目录中,但是什么也没有发生……没有错误……但是我的小程序没有加载。
我读了一些关于 Manifest 的东西,但我不能说,因为我是从 JApplet 扩展而来的
编辑:编码 我的主类称为 FormMain
public FormMain() {
super();
}
/**
* Initialize GUI.
*/
public void init() {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e) {
}
this.setSize(515, 560);
this.setContentPane(createContentPane());
this.fingerprintSDKSample = new Util(this);
}