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

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