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

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

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

View Entire Article

User Comments

Title: asd   
Name: asd
Date: 2012-11-29 7:57:45 AM
Comment:
asd
Title: Email Id Form in Java   
Name: Siva
Date: 2012-08-17 11:24:34 AM
Comment:
I want to know how to create email id form in java.
plz anybody known it plz upload it...
Thanks...
Title: applet   
Name: mayuri
Date: 2011-03-14 1:20:41 PM
Comment:
Its very helpfull to me,thanks
Title: applet   
Name: vida
Date: 2011-03-11 4:27:51 AM
Comment:
It was nice article & Very helpfull. Thank you.
Title: applet help   
Name: sam
Date: 2010-08-25 10:42:37 AM
Comment:
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
Comment:
easy understanding for the beginners
Title: Applets with asp.net   
Name: java
Date: 2010-02-12 12:47:23 PM
Comment:
See this article for info on how to integrate Java applets with asp.net
http://java.sun.com/developer/technicalArticles/appletAspIntegration/index.html
Title: query related to applets   
Name: mayank
Date: 2009-10-14 2:35:43 AM
Comment:
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 mayank.mathur06@gmail.com.

Thank you.
Title: heyyyy   
Name: swathi
Date: 2009-08-10 3:47:13 AM
Comment:
its really very nice
Title: Applets   
Name: Anu
Date: 2009-07-23 1:56:43 PM
Comment:
It was a good article....you 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
Comment:
Hello,
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
Comment:
Really good article for beginners.....
Title: human face   
Name: ridima
Date: 2008-05-15 10:27:52 AM
Comment:
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
Comment:
Too good for beginners.
Title: java applets   
Name: venkata subbaiah
Date: 2007-08-13 3:43:13 AM
Comment:
emerging one for quick learning
Title: Fabulous   
Name: Nikita
Date: 2007-07-22 9:06:43 AM
Comment:
Go on
Title: Too good   
Name: Fred
Date: 2007-07-18 11:53:32 AM
Comment:
Its a nice article for beginners
Title: good   
Name: Rishi
Date: 2007-07-13 1:10:32 PM
Comment:
A very good article
Title: Good   
Name: Chandrakanta Kar
Date: 2007-07-13 7:57:18 AM
Comment:
It is fundamental level article, any way nice
Title: abhi   
Name: gr8
Date: 2007-07-06 12:53:16 PM
Comment:
keep up the good work!!!!
Title: something really gooe   
Name: Surya
Date: 2007-07-06 12:18:03 PM
Comment:
Its really good
Title: Good one   
Name: sdwsadxa
Date: 2007-07-04 11:35:48 AM
Comment:
Keep it up
Title: Nice   
Name: Tim
Date: 2007-07-04 11:35:05 AM
Comment:
Nice job
Title: Good work   
Name: Sid
Date: 2007-07-04 11:34:34 AM
Comment:
The article is worth reading.
Title: Good   
Name: Nash
Date: 2007-07-03 3:21:39 AM
Comment:
Really helpful...good job

Product Spotlight
Product Spotlight 





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


©Copyright 1998-2019 ASPAlliance.com  |  Page Processed at 2019-08-17 7:22:22 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search