home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java by Example
/
jbecd.bin
/
JBE-CD
/
NTUsers
/
JBECODE.ZIP
/
JavaByExample
/
chap29
/
PackageApplet.java
< prev
Wrap
Text File
|
1996-03-18
|
407b
|
18 lines
import java.awt.*;
import java.applet.*;
import MyPackages.Display.DisplayClass;
public class PackageApplet extends Applet
{
public void paint(Graphics g)
{
Font font = new Font("TimesRoman", Font.PLAIN, 24);
g.setFont(font);
DisplayClass myClass = new DisplayClass();
String s = myClass.GetDisplayText();
g.drawString(s, 60, 80);
}
}