All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class HelloWorld

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----java.awt.Panel
                            |
                            +----java.applet.Applet
                                    |
                                    +----HelloWorld

public class HelloWorld
extends java.applet.Applet
the classic first example from Kernighan & Richie C rewritten as an Applet

See Also:
Hello

Constructor Index

 o HelloWorld()
 

Method Index

 o init()
method called when applications is started.
 o main(String[])
When used as an application the main program.
 o paint(Graphics)
Method called whenever the applet needs to be painted or repainted.

Constructor Detail

 o HelloWorld
public HelloWorld()

Method Detail

 o init
public void init()
          method called when applications is started. Does nothing in this case.
Overrides:
init in class java.applet.Applet
 o paint
public void paint(java.awt.Graphics g)
          Method called whenever the applet needs to be painted or repainted. Outputs a string by painting it into its argument Graphics g
Overrides:
paint in class java.awt.Container
 o main
public static void main(java.lang.String args[])
          When used as an application the main program. main creates the window in which Helloworld runs.

All Packages  Class Hierarchy  This Package  Previous  Next  Index