public void updateBPM() {
   if (model != null) {
     int bpm = model.getBPM();
     if (bpm == 0) {
       if (bpmOutputLabel != null) {
         bpmOutputLabel.setText("offline");
       }
     } else {
       if (bpmOutputLabel != null) {
         bpmOutputLabel.setText("Current BPM: " + model.getBPM());
       }
     }
   }
 }
 public DJView(ControllerInterface controller, BeatModelInterface model) {
   this.controller = controller;
   this.model = model;
   model.registerObserver((BeatObserver) this);
   model.registerObserver((BPMObserver) this);
 }