home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Web Programming with Visual J++
/
Web_Programming_with_Visual_J_SAMS.NET_Version_1.0_1997.iso
/
source
/
chap16
/
ex16a.java
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Java Source
|
1996-09-15
|
436 b
|
21 lines
import java.applet.*;
import java.awt.*;
public class EX16A extends Applet
{
protected Button SetColorButton = new Button("Set Color");
protected Button SetFontButton = new Button("Set Font");
protected String MyText = new String("This is the text being modified.");
public void init()
{
add(SetColorButton);
add(SetFontButton);
}
public void paint(Graphics g)
{
g.drawString(MyText, 20, 100);
}
}