#1  
26th December 2010, 05:22 PM
Unregistered
Guest
 
Posts: n/a

What are Applets in Java? How can they be used in programming?


Explain in detail about Applets in Java and how do they can be used in programming?




  #2  
27th December 2010, 11:24 AM
rahul k
Senior Member+++++
 
Join Date: Feb 2010
Location: Rishikesh, Uttranchal
Posts: 9,724
Default Re: What are Applets in Java? How can they be used in programming?

Dear Friend

Detail About Applet Java -

An applet is a small Internet-based program written in Java, a programming language for the Web, which can be downloaded by any computer. The applet is also able to run in HTML. The applet is usually embedded in an HTML page on a Web site and can be executed from within a browser.

Applets are used to provide interactive features to web applications that cannot be provided by HTML alone. They can capture mouse input (like rotating 3D object) and also have controls like buttons or check boxes.


What is Java Applet -

Java is a general purpose programming language.

A Java program is created as a text file with .java extension.

It is compiled into one or more files of bytecodes with class extension.

Bytecodes are a set of instructions similar to machine code of a specific machine but it can be run on any machine that has a Java Virtual Machine (JVM). JVM interprets bytecodes.

JVM was first implemented on Sparc/Solaris and PC/Win32. Now ported to many other platforms.

Java applets are Java programs that are retrieved and executed by web browsers through the JVM under tight secure environment.

Web browsers retrieve Java applets according to following tags in the web pages:

<applet code=ResPlotApplet.class width=600 height=500> deprecated or the new more general,
<object codetype="application/java" classid="java:ResPlotApplet.class" width=600
height=500>
<param> are used to specify parameters for the applet. For example,
<APPLET CODE="Animator.class"
WIDTH="aNumber" -- the width (in pixels) of the widest frame
HEIGHT="aNumber"> -- the height (in pixels) of the tallest frame
<PARAM NAME="IMAGESOURCE"
VALUE="aDirectory"> -- the directory that has the animation frames (gif, jpg)


All other types of java programs are called Java applications.
  #3  
27th December 2010, 12:31 PM
dreksha chaudhary
Senior Member+++
 
Join Date: Oct 2010
Location: offcourse in my home
Posts: 1,721
Default Re: What are Applets in Java? How can they be used in programming?

Dear friend
An applet is a small Internet-based program written in Java. The applet is usually embedded in an HTML page on a Web site and can be executed from within a browser.

Applets are used to provide interactive features to web applications that cannot be provided by HTML alone.
  #4  
27th December 2010, 01:31 PM
priyanka_swengg
Senior Member+++++
 
Join Date: Nov 2010
Location: INDIA
Posts: 2,770
Smile Re: What are Applets in Java? How can they be used in programming?

An applet is a small program that can be sent along with a Web page to a user...... in the form of Java bytecode.Since Java's bytecode is platform independent, Java applets can be executed by browsers for any platforms...


AN example of applet

<Html>
<Head>
<Title>Java Example</Title>
</Head>

<Body>
This is my page<br>
Below you see an applet<br>
<br>
<Applet Code="MyApplet.class" width=200 Height=100>
</Applet>
</Body>
</Html>
Reply With Quote
  #5  
27th December 2010, 03:33 PM
babydoll
Senior Member
 
Join Date: Sep 2010
Location: my sweet home
Posts: 1,003
Default Re: What are Applets in Java? How can they be used in programming?

Hi!
JAVA APPLETS:
An applet is a special kind of java program that a browser enabled with java technology can download from the internet and run.
An applet is inherrently part of a graphical user interface. we can see the applet in the 3d objest in any browsing websites.
There are many applets which are made a web browser.

You can create the java applets for various APPLET CLASS SUCH AS:-
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
This is the basic hierarchy of Applet class.

Hope you will get the basic concept of the java applet.
Thank you.
Reply With Quote
  #6  
28th December 2010, 12:38 AM
nishant1110
Senior Member
 
Join Date: Dec 2010
Location: Patna, Bihar, India
Posts: 355
Default Re: What are Applets in Java? How can they be used in programming?

Quote:
An applet is a small Internet-based program written in Java, a programming language for the Web, which can be downloaded by any computer. The applet is also able to run in HTML. The applet is usually embedded in an HTML page on a Web site and can be executed from within a browser.
This statement has been written more than once. But the useful part about applets is that they are easy to programme, render great output, and make your webpage more interactive than basic-HTML versions. Also, the JAVA virtual machine (JVM) is used to execute these applets within the web browser by converting the source code into JAVA byte code.

Furthermore, useful and good examples in this regard can be found in the software package entitled NetBeans IDE, and more basic versions are available with BlueJ.
Reply With Quote
  #7  
28th December 2010, 09:53 PM
mini rani
Senior Member++
 
Join Date: Mar 2010
Location: dhanbad (jharkhand)
Posts: 1,691
Default Re: What are Applets in Java? How can they be used in programming?

hi!

An applet is a program written in the Java programming language that can be included in an HTML page, much in the same way an image is included in a page.

When you use a Java technology-enabled browser to view a page that contains an applet, the applet's code is transferred to your system and executed by the browser's Java Virtual Machine (JVM).

For details visit this link:
http://java.sun.com/applets/
Reply With Quote
  #8  
28th December 2010, 10:36 PM
yajvendra
Senior Member
 
Join Date: Dec 2010
Location: hariyana
Posts: 525
Default Re: What are Applets in Java? How can they be used in programming?

dear friend
Applets are the small programs written in java that can be directly used. so these are pre constructed program that ca be used in java programs.
we can use applets in our programs by directly calling them into programs
Reply With Quote
  #9  
28th March 2011, 07:53 PM
Unregistered
Guest
 
Posts: n/a
Default Re: What are Applets in Java? How can they be used in programming?

difference between public and proteceted access specifier .
Reply With Quote
  #10  
1st July 2011, 01:03 PM
Unregistered
Guest
 
Posts: n/a
Default Re: What are Applets in Java? How can they be used in programming?

what are the disadvantages of applet
Reply With Quote
  #11  
15th August 2011, 11:50 PM
balafederer
Senior Member+
 
Join Date: Jul 2011
Posts: 813
Default Re: What are Applets in Java? How can they be used in programming?

Hello,

An applet is a small Internet program. A programming language for the web, which can be downloaded by any computer. The applet is usually embedded in an HTML page on a Web site and can be executed from within a browser.

Simple Example:

import java.awt.*;
import java.applet.*;
public class SimpleApplet extends Applet
{
public void paint(Graphics g)
{
g.drawString(*A Simple Applet*, 20,20);
}
}

Thank you
Reply With Quote
  #12  
19th August 2011, 12:28 AM
amaan khan ak
 
Join Date: Aug 2011
Location: bikaner
Posts: 579
Default Re: What are Applets in Java? How can they be used in programming?

Quote:
Originally Posted by Unregistered View Post
Explain in detail about Applets in Java and how do they can be used in programming?
java have a property of applet.applet is a special type of java program which is design to be transmitted over the internet and it do work properly automatically executed by the java compatible web brower.
applet is a very useful application.applet is download on demand,without any intrection of user.
by the help of applet it changed internet programming.it also very promising in security and its also have a portability property.
Reply With Quote
  #13  
7th September 2011, 02:04 PM
manoj rajpurohit
Junior Member
 
Join Date: Feb 2011
Location: Bikaner
Posts: 352
Default Re: What are Applets in Java? How can they be used in programming?

Applet is a very nice feature in which user can interact his web pages with the help of these applets.

applets is written in Html language where we can determine its length and width, it is like a frame window made in the HTML language.

java programmers can connect the applet with the java programming in which the Applet coding is done then the java code is written , now it can be used.

i hope you understand that. best of luck.
Reply With Quote
  #14  
21st September 2011, 03:06 PM
Unregistered
Guest
 
Posts: n/a
Default Re: What are Applets in Java? How can they be used in programming?

What are Applets?Give the lifecycle of an Applets.
Reply With Quote
Do you have any question? or have anything to say?



Related Topics:

Thread Replies Last Post
ROHIT-no need to explain 0 1st January 2010 10:53 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
vBulletin Optimisation by vB Optimise.
Please also check: