Reputation: 4740
I have a Applet that extends from JApplet and 5 another classes that interact with this JApplet one, but I need to put this applet in my HTML page.
How can I do that ?
I Try the follow code
<applet archive="test.jar"
width="100" height="100">
</applet>
both files (HTML and JAR) are in the sme directory, but nothing happens...no errors....but my applet don't loaded.
I read something about Manifest but I can't put it because I extend from JApplet
EDITED: Code My main class called 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);
}
Upvotes: 0
Views: 149
Reputation: 46728
CODE, WIDTH, and HEIGHT are mandatory attributes for an applet tag. You have not defined the Code attribute.
If your start()
section is in a file called someclass.class
, you need to specify the code parameter in your applet tag as follows:
<applet archive="test.jar"
width="100" height="100" code="someclass.class">
</applet>
Upvotes: 2