home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java by Example
/
jbecd.bin
/
JBE-CD
/
NTUsers
/
JBECODE.ZIP
/
JavaByExample
/
chap12
/
Applet14.java
< prev
next >
Wrap
Text File
|
1996-02-13
|
525b
|
20 lines
import java.awt.*;
import java.applet.*;
public class Applet14 extends Applet
{
public void paint(Graphics g)
{
DrawInstructions(g);
}
void DrawInstructions(Graphics g)
{
g.drawString("Try to guess the number I am", 48, 65);
g.drawString("thinking of. The number will be", 48, 80);
g.drawString("between 0 and 100. You have an", 48, 95);
g.drawString("unlimited number of tries.", 48, 110);
g.drawString("Good Luck.", 95, 140);
}
}