CounterPanel Class
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
public class CounterPanel extends Panel
implements ActionListener,
CounterObserver {
public CounterPanel(Counter ctr) {…}
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