Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java: JApplet, How do you embed it in a webpage?

I searched for this subject on Google and got some website about an experts exchange...so I figured I should just ask here instead.

How do you embed a JApplet in HTML on a webpage?

like image 376
jjnguy Avatar asked Feb 03 '26 22:02

jjnguy


2 Answers

Here is an example from sun's website:

<applet code="TumbleItem.class" 
        codebase="examples/"
        archive="tumbleClasses.jar, tumbleImages.jar"
        width="600" height="95">
    <param name="maxwidth" value="120">
    <param name="nimgs" value="17">
    <param name="offset" value="-57">
    <param name="img" value="images/tumble">

Your browser is completely ignoring the &lt;APPLET&gt; tag!
</applet>
like image 194
Mike Stone Avatar answered Feb 06 '26 10:02

Mike Stone


Although you didn't say so, just in case you were using JSPs, you also have the option of the jsp:plugin tag?

like image 32
toolkit Avatar answered Feb 06 '26 11:02

toolkit



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!