Introducing Java Applets
page 2 of 5
by Debjani Mallick
Average Rating: 
Views (Total / Last 10 Days): 41639/ 71

Need of Applets

Web pages are basically of two types – static and dynamic web pages. Applets are basically used to create dynamic pages. Using HTML we can create only static pages, not dynamic pages. So Java using applet is used to create dynamic pages. There are two types of classes for applet – Applet class and Graphic class. The difference of an applet program from a normal program is that it does not contain the main function (though it can contain main function). So it has no entry point. The program starts executing from some functions present in Applet class. Secondly, an applet program cannot be executed independently as done in case of normal application programs. They must be executed with the help of either applet viewer or with the help of any web browser. If using an applet viewer to run a program, we just need to write the following syntax.

Listing 1

appletviewer classname

When we want to execute an applet program with the help of a web browser, we need to write an HTML file. This file must contain an applet tag. An example of such a file is shown below.

Listing 2

A Simple Example of Applet
<applet code ="filename.class" width =“100px” height =“100px”></applet>

View Entire Article

User Comments

Title: asd   
Name: asd
Date: 2012-11-29 7:57:45 AM
Title: Email Id Form in Java   
Name: Siva
Date: 2012-08-17 11:24:34 AM
I want to know how to create email id form in java.
plz anybody known it plz upload it...
Title: applet   
Name: mayuri
Date: 2011-03-14 1:20:41 PM
Its very helpfull to me,thanks
Title: applet   
Name: vida
Date: 2011-03-11 4:27:51 AM
It was nice article & Very helpfull. Thank you.
Title: applet help   
Name: sam
Date: 2010-08-25 10:42:37 AM
Thank you for the helpful and concise article. This was a good introduction to applets.
Title: Applets   
Name: veena
Date: 2010-04-19 6:40:44 AM
easy understanding for the beginners
Title: Applets with   
Name: java
Date: 2010-02-12 12:47:23 PM
See this article for info on how to integrate Java applets with
Title: query related to applets   
Name: mayank
Date: 2009-10-14 2:35:43 AM
i m learning applet,can you please explain me how to write code for event handling in applets.if you know the answer then please mail to my email id

Thank you.
Title: heyyyy   
Name: swathi
Date: 2009-08-10 3:47:13 AM
its really very nice
Title: Applets   
Name: Anu
Date: 2009-07-23 1:56:43 PM
It was a good are doing a good job. Keeps on sharing your knowledge with others......thanks.
Title: Applets   
Name: Priya
Date: 2009-07-14 7:48:50 AM
awesome job!
Iam a learning applets and standing at initial stages.This article renders excellent learning resources with lots of examples written in short and sweet mannner that provide quick learning covering almost alll topics in short span of time.

Thanks and keep up the good work....
Title: Applets   
Name: Sutapa
Date: 2008-06-18 2:02:46 PM
Really good article for beginners.....
Title: human face   
Name: ridima
Date: 2008-05-15 10:27:52 AM
what if i have to run the human face applet from command prompt
it shows me an error that no main found
Title: java applets   
Name: kunwarjeet singh
Date: 2007-08-15 11:25:33 PM
Too good for beginners.
Title: java applets   
Name: venkata subbaiah
Date: 2007-08-13 3:43:13 AM
emerging one for quick learning
Title: Fabulous   
Name: Nikita
Date: 2007-07-22 9:06:43 AM
Go on
Title: Too good   
Name: Fred
Date: 2007-07-18 11:53:32 AM
Its a nice article for beginners
Title: good   
Name: Rishi
Date: 2007-07-13 1:10:32 PM
A very good article
Title: Good   
Name: Chandrakanta Kar
Date: 2007-07-13 7:57:18 AM
It is fundamental level article, any way nice
Title: abhi   
Name: gr8
Date: 2007-07-06 12:53:16 PM
keep up the good work!!!!
Title: something really gooe   
Name: Surya
Date: 2007-07-06 12:18:03 PM
Its really good
Title: Good one   
Name: sdwsadxa
Date: 2007-07-04 11:35:48 AM
Keep it up
Title: Nice   
Name: Tim
Date: 2007-07-04 11:35:05 AM
Nice job
Title: Good work   
Name: Sid
Date: 2007-07-04 11:34:34 AM
The article is worth reading.
Title: Good   
Name: Nash
Date: 2007-07-03 3:21:39 AM
Really helpful...good job

Product Spotlight
Product Spotlight 

Community Advice: ASP | SQL | XML | Regular Expressions | Windows

©Copyright 1998-2023  |  Page Processed at 2023-10-01 2:09:28 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search