Androidberry logo Androidberry text logo
AndroidBerry Home
  • Learn Java
  • Java Programs
  • Interview Questions
  • Androidberry facebook
  • Androidberry twitter
  • Androidberry google plus

Java Tutorials


Basic Introduction

Decision Making

Looping

Classes and Objects

Inheritance

Interface

Packages

Exception Handling

Multithreading

Java Multithreading
Creating a Thread
Thread Life Cycle
Thread Exceptions
Thread Synchronization

Java Applets

What is Applet?
Java Applet vs Application
Creating a Applet
Displaying Applet on Webpage
Applet Lifecycle
Applet Tag
Passing Parameters to Applet
Setting Color to applet
Update and Repaint method
Using Fonts in Applet

Graphics Programming

Intro. to Graphics class
Drawing - Lines , Rectangles
Drawing - Circles and Ellipse
Drawing - Arcs
Drawing - Polygons
Drawing - Bar Charts

More on Java

Java Programs
Java Keywords Dictionary
Java Interview Questions

Java Applet


Java Applet

What is applet?

Applet is a dynamic and interactive java program which runs inside the web page.

Normally, the java application program run on the command prompt using java interpreter whereas the java applets can be transported over the internet from one computer to another.

Uses of applet

  • Displaying graphics on screen
  • For Playing sound file.
  • Performing arithmetic operations
  • Creating attractive animations
  • Playing interactive games

Applet class chain

classes in chain

An applet class extends from AWT Panel class, which extends AWT Container class, which extends AWT Component class.

Panel - An applet is specialized panel that is embedded in a specialized component container called applet context.

Component - From container applet inherits the ability to draw and handle events. Ex -Mouse click,button click etc

Container - From container, an applet inherits the ability to include other components and to have layout manager to control the size and position of components.


Types of Applets

Applets can be embedded into web pages in following Two ways.

  • Local Applet
  • Remote Applet

1. Local Applet

Local applet is developed and stored in a offline computer.

When a offline web page want to access the applet program then it simply searches in the local computer.


2. Remote Applet

An applet which is designed by someone else and stored on a remote computer is called as Remote Applet.

To access remote applet the internet connection is required to download and run the applet.

The server URL must be specified to load the applet from internet.

On upcoming topic we will learn to create an applet.


<< Previous Next >>

See Also

All Java Programs
Java Keywords
Java Interview Questions

AndroidBerry Support

About us
Contact us
Suggest us
Questions?

Follow us

Androidberry FacebookFacebook
Androidberry TwitterTwitter
Androidberry GooglePlusGoogle+
Back to top
Androidberry Name Logo