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

HelloWorld()
 

Method Index

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


Constructors

HelloWorld
public HelloWorld()


Methods

init
public void init()
          method called when applications is started. Does nothing in this case.
Overrides:
init in class java.applet.Applet
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
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