home *** CD-ROM | disk | FTP | other *** search
/ Java by Example / jbecd.bin / JBE-CD / NTUsers / JBECODE.ZIP / JavaByExample / chap06 / Applet4.java < prev    next >
Text File  |  1996-01-31  |  231b  |  13 lines

  1. import java.awt.*;
  2. import java.applet.*;
  3.  
  4. public class Applet4 extends Applet
  5. {
  6.     public void paint(Graphics g)
  7.     {
  8.         int x = 10;
  9.         String s = String.valueOf(x);
  10.         g.drawString(s, 40, 50);
  11.     }
  12. }
  13.