package diagapplet.utils; import java.awt.Button; import java.awt.Event; // Button with count so diagapplet can see when it has be pressed. public class CountButton extends Button { public int count = 0; public CountButton(String str) { super(str); } public boolean action(Event evt, Object what) { count++; return super.action(evt,what); } }