Class chap4.ch4_fig3
All Packages Class Hierarchy This Package Previous Next Index
Class chap4.ch4_fig3
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----chap4.ch4_fig3
- public class ch4_fig3
- extends Applet
An applet that prints the string "Hello world, again" at
absolute applet-relative coordinates x=20, y=50 on a red
background.
-
init()
- Resize the applet to slightly larger than the applet
tag sizes us.
-
paint(Graphics)
- Actually paint the string on the screen, after clearing the
applet to red first.
init
public void init()
- Resize the applet to slightly larger than the applet
tag sizes us.
- Overrides:
- init in class Applet
paint
public void paint(Graphics g)
- Actually paint the string on the screen, after clearing the
applet to red first.
- Overrides:
- paint in class Component
All Packages Class Hierarchy This Package Previous Next Index