HELP! * GREY=local LOCAL HTML version of Foils prepared January 8,96

Foil 44 NPAC Example: "Hello World" Applet

From Overview of Java SC95 Tutorial on Web Technologies -- December 4,95. by NPAC Team * See also color IMAGE

This is a "Hello, World" Applet in Java:
  • import browser.Applet;
  • import awt.Graphics;
  • class HelloWorldApplet extends Applet
  • {
  • public void init() {
    • resize(300,50); }
    • public void paint (Graphics g) {
    • g.drawString("Hello World!",100,50); }
  • } // end of HelloWorldApplet



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