home *** CD-ROM | disk | FTP | other *** search
Java Source | 1996-06-16 | 371 b | 16 lines |
- import java.applet.Applet;
- import java.awt.*;
-
- public class HelloMan extends Applet
- {
- // let's keep track of how often we're called
- // on to repaint the window
- static private int m_nRepaintCount = 0;
-
- public void paint(Graphics g)
- {
- String s = "Hello, world (" + ++m_nRepaintCount + ")";
- g.drawString(s, 0, 20);
- }
- }
-