示例#1
0
 public void actionPerformed(ActionEvent ae) {
   setChanged();
   if (ae.getSource().equals(ap.getDoneButton()) && ap.noErrors()) {
     this.notifyObservers("betala");
   }
 }
示例#2
0
 public AdressCard(Observer o) {
   this.addObserver(o);
   ap = new AdressPanel();
   ap.setMaximumSize(new Dimension(623, 409));
   ap.getDoneButton().addActionListener(this);
 }