Forum Topic: Java: Embeding Into Html Documents

(714 views • 8 replies)

This topic is 1 page long.

<< < > >>
None

Jordan

Reply To Post Reply & Quote

Posted at: 6/8/06 07:38 AM

Jordan DARK LEVEL 14

Sign-Up: 04/23/06

Posts: 2,833

Hello,

This tutorial will explain to you how to embed Java applets into html documents.

First of all paste this code into the body area of your webpage:

<applet code="APPLET.class" width="100%" height="100%">

This webpage uses java, but your browser does not support it.

</applet>

Now i will explain what each part does and how to change it.

code="APPLET.class"
this is where you type in the directory and the name of your .class file for the java applet, change it to the class file of your applet.

width="100%" height="100%"
this is where you determine the width and height of your java applet when its shown in the webpage, at the moment it will take up all of the wepage as it is set to 100%, but you can change this to just the amount of pixels you want it to be/ whatever percentage you want!

This webpage uses java, but your browser does not support it.
in here is where you type the message that will be shown if the browser that is veiwing the webpage does not have Java support.

Report any errors you find.

Jordan, Doodle-Flash.


None

Jordan

Reply To Post Reply & Quote

Posted at: 6/8/06 07:47 AM

Jordan DARK LEVEL 14

Sign-Up: 04/23/06

Posts: 2,833

oh i nearly forgot, to make an applet name appear in the status bar do this:

<applet code="APPLET.class" name="a name" width="100%" height="100%">
this webpage uses java, but your browser does not support it.
</applet>


None

Jordan

Reply To Post Reply & Quote

Posted at: 6/8/06 08:35 AM

Jordan DARK LEVEL 14

Sign-Up: 04/23/06

Posts: 2,833


None

Momo-the-Monkey

Reply To Post Reply & Quote

Posted at: 6/8/06 08:36 AM

Momo-the-Monkey EVIL LEVEL 34

Sign-Up: 10/15/05

Posts: 3,249

At 6/8/06 08:35 AM, doodle_flash wrote: Java: Main

HAHAH ROFL that is funny. I meant it to be at the top of your tutorial like phpmain and asmain. But good try hahahahah that's hilarious :D

Randosity is something you should see...
You should also see Gir's Soundboard...
[ PHP: Main | Music ]

BBS Signature

None

Jordan

Reply To Post Reply & Quote

Posted at: 6/8/06 08:41 AM

Jordan DARK LEVEL 14

Sign-Up: 04/23/06

Posts: 2,833

At 6/8/06 08:36 AM, Momo_the_Monkey wrote:
At 6/8/06 08:35 AM, doodle_flash wrote: Java: Main
HAHAH ROFL that is funny. I meant it to be at the top of your tutorial like phpmain and asmain. But good try hahahahah that's hilarious :D

SHUT UP!

you cant edit posts once you have made them so stop taking the p**s


None

amaterasu

Reply To Post Reply & Quote

Posted at: 6/8/06 08:48 AM

amaterasu LIGHT LEVEL 07

Sign-Up: 03/07/04

Posts: 2,051

Don't forget to mention that's how you make applets with Java 2 enabled browsers. The older Java Plugin has a more complicated process to imbed applets.

NexusTK Characters: Stegmann Cirucci Ulquiorra Ganju

Do you like chill music? Check out my latest work!

BBS Signature

None

Momo-the-Monkey

Reply To Post Reply & Quote

Posted at: 6/8/06 09:08 AM

Momo-the-Monkey EVIL LEVEL 34

Sign-Up: 10/15/05

Posts: 3,249

At 6/8/06 08:41 AM, doodle_flash wrote:
At 6/8/06 08:36 AM, Momo_the_Monkey wrote:
At 6/8/06 08:35 AM, doodle_flash wrote: Java: Main
HAHAH ROFL that is funny. I meant it to be at the top of your tutorial like phpmain and asmain. But good try hahahahah that's hilarious :D
SHUT UP!

you cant edit posts once you have made them so stop taking the p**s

calm down man..it was just a joke...i was joooooookkkiiiiinnnggg *in hypnotic voice)

Randosity is something you should see...
You should also see Gir's Soundboard...
[ PHP: Main | Music ]

BBS Signature

None

amaterasu

Reply To Post Reply & Quote

Posted at: 6/8/06 09:12 AM

amaterasu LIGHT LEVEL 07

Sign-Up: 03/07/04

Posts: 2,051

This is if you want to make one for non-Java 2 enable browsers (which are disappearing, but for completeness' sake)

<HTML>

<HEAD>
<TITLE> Rectangle Applet </TITLE>
</HEAD>

<BODY>
<P> Here is my rectangle drawing applet: </P>
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-
00805F499D93"
width="300" height="300" align="baseline"
codebase="http://java.sun.com/products/plu
gin
/1.3/jinstall-13-win32.cab#Version=1,3,0,0
">
<PARAM NAME="code"
VALUE="RectangleApplet.class">
<PARAM NAME="type"
VALUE="application/x-java-applet;version=1
.3">
<EMBED
type="application/x-java-applet;version=1.
3" width="300" height="300" align="baseline"
code="RectangleApplet.class"
pluginspage="http://java.sun.com/products/
plugin/1.3/plugin-install.html">
<NOEMBED>
No Java 2 SDK, Standard Edition v 1.3
support for APPLET!!
</NOEMBED>
</EMBED>
</OBJECT>

</BODY>

</HTML>

NexusTK Characters: Stegmann Cirucci Ulquiorra Ganju

Do you like chill music? Check out my latest work!

BBS Signature

None

seel

Reply To Post Reply & Quote

Posted at: 8/25/06 12:49 PM

seel FAB LEVEL 19

Sign-Up: 06/27/05

Posts: 2,193

At 6/8/06 08:41 AM, -Jordan- wrote:
At 6/8/06 08:36 AM, Momo_the_Monkey wrote:
At 6/8/06 08:35 AM, doodle_flash wrote: Java: Main
HAHAH ROFL that is funny. I meant it to be at the top of your tutorial like phpmain and asmain. But good try hahahahah that's hilarious :D
SHUT UP!

you cant edit posts once you have made them so stop taking the p**s

Lol calm down dude, that was obviously a joke.. And yes we do know you cant edit posts.. Why get so fucking upset about that??? And as pointed out before, that was for java 2 enabled browsers only.. Well i wont complain about that tutorial.


All times are Eastern Standard Time (GMT -5) | Current Time: 01:28 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!