Hello World

Hello World using a Label in a Frame is

import java.awt.*;

public class Hello extends Frame {
  public static void main(String argv[])
  {
    new Hello();
  }
  Hello() {
    Label hello = new Label("Hello World");
    add("Center", hello);
    resize(200, 200);
    setVisible(true);
  }
}


Slide 29 ©Copyright 1997 Jan Newmarch