HELP! * YELLOW=global GREY=local Global HTML version of Foils prepared February 11,1996

Foil 23 Hello World Applet from Sun Tutorial
Getting Started

From IBM Tutorial on Web Technology for HPCC IBM Poughkeepsie -- February 7 1996. by Geoffrey Fox * Critical Information in IMAGE

This prints in applet window, the classic Hello World string!
import java.awt.Graphics
public class HelloWorld extends java.applet.Applet {
  • public void init() {
    • resize(150,25)
  • }
  • public void paint(Graphics g) {
    • g.drawString("Hello world!", 50, 25);
  • }
}
g which is of class Graphics, is window in which applet runs (i.e. is displayed)


Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Feb 18 1997