Applet Tutorial Java

Java Made Simple: Read HTML param Tag in Applet Example

HTML param: First let us write a simple Applet program and see the drawbacks of the coding. Following is the simple familiar applet program that prints "Hello World". HTML file: File Name: Simple.html

Applet file: File Name: DemoApplet.java

The problem of above code is hard coding. In hard…

Java Made Clear: Difference start vs init in Applet

start vs init Applet: Like other concepts of Java like Thread, Servlet and Enterprise Bean, an Applet also comes with a life cycle. Different states in which an applet exist between its object creation and object garbage collection is known as life cycle. The methods involved in the life cycle…

Status bar Applet showStatus() method Example

Displaying messages is of two ways in Applet. One way is displaying anywhere in the applet window and the other way is displaying in the status bar with showStatus() method. 1. What is status bar? The bottom of the applet window is known as status bar. In a Browser or…

Convert Application to Applet

BHAVANA After observing the procedure of converting applet to application, now let us visualize the application to applet . Once you know how to convert applet to application, now you can guess the steps for application to applet. Following is the application on Application to Applet that changes the background…

MouseListener MouseAdapter Applet

We know in Java, every listener interface that has got more than one abstract method comes with a corresponding adapter class. Usage of adapters classes in Java programming makes coding simple. Two programs (one as applet and the other as frame) are given to handle the events of mouse with…

Applets Vs Applications Java

All Java programs can be classified as Applications and Applets. The striking differences are that applications contain main() method where as applets do not. One more is, applications can be executed at DOS prompt and applets in a browser. We can say, an applet is an Internet application. Come on,…

Banner Applet cum Application

Example on Moving Banner and Applet cum Application that works applet as an application also Banner is a string that moves either horizontally or vertically across the applet window. In the following program, the string "S N Rao" is moved horizontally. This is done both as applet and application (…

Applet Example Draw Strings and Graphics

Applet Example: Drawing Strings and Graphics in Applets given with Screenshots in Simple terms for a Beginner. After practicing the earlier simple life cycle program, let us write another program that prints some strings on applet window (not at DOS prompt as done previously). Now we use the java.awt.Graphics object…

HTML to Applet and Applet to Applet Communication

Two separate examples given on HTML to Applet communication in 1st page and Applet to Applet communication in 3rd page. HTML to Applet: Reading from HTML into Applet Sometimes, it may be required to initialize some data while the applet object is being created. This data may be useful to…

Applet Life Cycle

1st page given Applet Life Cycle, 2nd page given Applet API support methods and 3rd page given Applet Example. Various states, an applet, undergoes between its object creation and object removal (when the job is over) is known as Applet Life Cycle. Each state is represented by a method. There…