20 - Applet
20 - Applet
Java Applet
Learning Objectives :
Introduction of Applet
Hierarchy of Applet
Applet Execution
Example
Introduction of Java Applet
Java Applications are stand alone programs
executed with Java interpreter.
BorderLayout
Applet Layout Manager
GridLayout
CardLayout
GridBagLayout
Bounding Box Concept
A shape can be filled or unfilled, depending on which
method is invoked.
The method parameters specify coordinates and
sizes.
Shapes with curves, like an oval, are usually drawn
by specifying the shape’s bounding rectangle.
An arc can be thought of as a section of an oval.
Drawing a Rectangle
50 X
20
40
100
12
Drawing a Line
10 150 X
20
45
2
0
80
boundi
ng
Y rectang 50
le