Newsletter:

(Tutorial) Java Applet Programming

Tutorial : Java Applet Programming

Applets are written in Java and they are viewed using Applet Viewer or a Java enabled browser. Applets are included in HTML page using <APPLET> tag, and then these can be viewed by the users having Java enabled browser. Thing to note is that Applets are not executed on the server side. They are transferred to user’s machine and then executed by the browser's Java Virtual Machine (JVM).

The <APPLET> tag
Applet tag is used to add the applet into HTML page.

Code:
<APPLET CODE=AppletSubclass.class WIDTH=anInt HEIGHT=anInt>
</APPLET>

One has to specify the applet class name, along with the width and height of the applet. This is a way to inform the browser’s JVM how to handle the applet...

[Read More..]

Courtesy:- Java-forums.org