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