CounterApplet Class
public class CounterApplet extends Applet {
Counter ctr1 = new Counter(10);
CounterPanel cp1 = new CounterPanel(ctr1);
CounterPanel cp2 = new CounterPanel(ctr1);
Counter ctr2 = new Counter(5);
CounterPanel cp3 = new CounterPanel(ctr2);
CounterPanel cp4 = new CounterPanel(ctr2);
CounterAlarmPanel cpa = new CounterAlarmPanel();
cpa.add(ctr1, 8); cpa.add(ctr2, 4);
setLayout(new BorderLayout());
add(cp1, "North"); add(cp2, "South");
add(cp3, "East"); add(cp4, "West");
CounterLogger cl = new CounterLogger(ctr1, "Counter1");
CounterLogger c2 = new CounterLogger(ctr2, "Counter2");