Class chap1.ch1_fig1
All Packages Class Hierarchy This Package Previous Next Index
Class chap1.ch1_fig1
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----chap1.ch1_fig1
- public class ch1_fig1
- extends Applet
An applet that displays the string "Hello world" at the
coordinates x=20, y=50 on the applet display space.
-
paint(Graphics)
- Paint the string at x=20, y=50.
paint
public void paint(Graphics g)
- Paint the string at x=20, y=50.
- Overrides:
- paint in class Component
All Packages Class Hierarchy This Package Previous Next Index