home *** CD-ROM | disk | FTP | other *** search
/ Java by Example / jbecd.bin / JBE-CD / NTUsers / JBECODE.ZIP / JavaByExample / chap12 / Applet14.java < prev    next >
Text File  |  1996-02-13  |  525b  |  20 lines

  1. import java.awt.*;
  2. import java.applet.*;
  3.  
  4. public class Applet14 extends Applet
  5. {
  6.     public void paint(Graphics g)
  7.     {
  8.         DrawInstructions(g);
  9.     }
  10.  
  11.     void DrawInstructions(Graphics g)
  12.     {
  13.         g.drawString("Try to guess the number I am", 48, 65);
  14.         g.drawString("thinking of. The number will be", 48, 80);
  15.         g.drawString("between 0 and 100. You have an", 48, 95);
  16.         g.drawString("unlimited number of tries.", 48, 110);
  17.         g.drawString("Good Luck.", 95, 140);
  18.     }
  19. }
  20.