JAVA APPLETS

ABOUT

Java is an object-oriented programming language created by Sun Microsystems, they make high-end Internet servers and other UNIX (operating system) material. Object-oriented programming language refers to the construction of the programming language. The programming language is set up as if its parts are not as important as the whole. Java is like a model. There are many parts that make up the whole. However, the parts are useless by themselves. They must work in tandem with others like them. The objects make up the whole. Object-oriented programming. That's the quick explanation.

APPLET

Java, as outlined above, is a grouping of objects. A "class" of objects, actually. The Java applet is itself a fully functioning little program. It's an application, but it's a little application: An applet, in other words.

CLASS

You know how the Internet works by giving everything a name and then a suffix? In computer terms it's called "association." An example is "image.gif." Image is the name of the item and .gif is its form. Any page on the Web is done the same way. The name of the page you are looking at right now is "applet.html." The name of the page is applet and the type of page is html. By doing this, the computer can tell all these different files apart. It "associates" an application with the item's form. Images are displayed using an image viewer, html pages are displayed using the browser, etc. Basically, once the computer sees what the item is by its suffix, it knows what application to get to use the item. Well, these applets work the same way. The computer sees the applet as a name and then a suffix. In terms of an applet, the suffix is ".class." Remember that applets are models made up of many little parts, a "class" of parts? Just as species are broken up into classes, so are applet parts. An applet is a class of like parts. Thus you will name the applet you are using in this fashion: applet.class.

If you have problems viewing Java through your browser you may need to install the required plug-in. To get the official JAVA plug-in for FREE, click here


EXAMPLES

Ad Scroller
Bike CAD
Rain Animation


TUTORIAL


STEP 1:

For this tutorial you are going to insert a Java Applet Clock, Firstly you will need the relevant code and Zip file. To get the required files click here.

Unzip the Zip files contents and put then in your web page area.

STEP 2:

Copy the code below:

STEP 3:

Paste the code into the <BODY> tag of your web page:

STEP 4:

Save the web page to the same location as the Zip files. Test your page in your browser.

OTHER TUTORIALS

HTML Goodies
Javaboutique

 

Close Window