TopBottom

Followers



Click on more
SUBSCRIBE

Enter your email address:

Delivered by FeedBurner



VIDEO

Announcement: wanna exchange links? contact me at ravikrak@yahoo.com

Applets Basics

Posted by Ravi Kumar at Thursday, March 5, 2009
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Before Java, you used HTML (the hypertext markup language) to describe the layout of a web page. HTML is simply a vehicle to indicate elements of a hypertext page.
For example,
tag. (This is one of the general rules for tags: a slash followed by the name of the element indicates the end of the element.)

The basic idea of how to use applets in a web page is
simple: the HTML page must tell the browser which applets to load and then where to put each applet on the web page. As you might expect, the tag needed to use an applet must tell the browser the following:

• From where to get the class files;

• How the applet sits on the web page
(size, location, and so on).

The original way to embed a Java applet was via an APPLET tag with parameters that gave the information listed above. The W3 Consortium has suggested switching to the more versatile OBJECT tag, and the older APPLET tag is deprecated in the HTML 4.0 specification.
The latest browsers will recognize both tags, but you should keep in mind that older browsers do not. We will cover the basics of using these tags a little later
The browser then retrieves the class files from the Net (or
from a directory on the user's machine) and automatically runs the applet, using its Java Virtual Machine.

Share |

0 comments:

Post a Comment