CounterApplet Class
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class CounterApplet extends Applet
implements ActionListener,
CounterObserver {
public void init() {…}
public void actionPerformed(ActionEvent e) {…}
public void counterHasChanged(Counter ctr) {…}
Button incButton, decButton;
TextField valField;
Counter ctr;
}
Previous slide
Next slide
Back to first slide
View graphic version