public void actionPerformed(ActionEvent ae) { setChanged(); if (ae.getSource().equals(ap.getDoneButton()) && ap.noErrors()) { this.notifyObservers("betala"); } }