home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Netscape Plug-Ins Developer's Kit
/
Netscape_Plug-Ins_Developers_Kit.iso
/
source
/
Chap18
/
count.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-10
|
357 b
|
26 lines
import java.applet.*;
import java.awt.*;
public class count extends Applet
{
int i;
public void init()
{
I = 0;
}
public void paint (Graphics g)
{
g.drawString("The count is" + i, 10, 50);
}
public void increment()
{
I++;
repaint();
}
public void decrement()
{
I--;
repaint();
}
}