Java Code


import java.awt.*;
import javax.swing.*;
public class HiWorld extends JApplet 
{
	  // declare instance variables here
	  int x;
	  int y;
      public void paint( Graphics grph )
	  {
	   	 x = 0;  
		 y = 12;
		 String text = "Hello World";	// local variable
		 grph.drawString( text, x, y );
	  }
}

Back to Code Examples
©2006- by E.S.Boese. All Rights Reserved