public void loadIcons(TGToolBar toolBar, boolean force) {
    int lastStatus = this.status;

    MidiPlayer player = MidiPlayer.getInstance(toolBar.getContext());
    if (player.isRunning()) {
      this.status = STATUS_RUNNING;
    } else if (player.isPaused()) {
      this.status = STATUS_PAUSED;
    } else {
      this.status = STATUS_STOPPED;
    }

    if (force || lastStatus != this.status) {
      if (this.status == STATUS_RUNNING) {
        this.first.setImage(toolBar.getIconManager().getTransportIconFirst2());
        this.last.setImage(toolBar.getIconManager().getTransportIconLast2());
        this.previous.setImage(toolBar.getIconManager().getTransportIconPrevious2());
        this.next.setImage(toolBar.getIconManager().getTransportIconNext2());
        this.stop.setImage(toolBar.getIconManager().getTransportIconStop2());
        this.play.setImage(toolBar.getIconManager().getTransportIconPause());
        this.play.setToolTipText(toolBar.getText("transport.pause"));
      } else if (this.status == STATUS_PAUSED) {
        this.first.setImage(toolBar.getIconManager().getTransportIconFirst2());
        this.last.setImage(toolBar.getIconManager().getTransportIconLast2());
        this.previous.setImage(toolBar.getIconManager().getTransportIconPrevious2());
        this.next.setImage(toolBar.getIconManager().getTransportIconNext2());
        this.stop.setImage(toolBar.getIconManager().getTransportIconStop2());
        this.play.setImage(toolBar.getIconManager().getTransportIconPlay2());
        this.play.setToolTipText(toolBar.getText("transport.start"));
      } else if (this.status == STATUS_STOPPED) {
        this.first.setImage(toolBar.getIconManager().getTransportIconFirst1());
        this.last.setImage(toolBar.getIconManager().getTransportIconLast1());
        this.previous.setImage(toolBar.getIconManager().getTransportIconPrevious1());
        this.next.setImage(toolBar.getIconManager().getTransportIconNext1());
        this.stop.setImage(toolBar.getIconManager().getTransportIconStop1());
        this.play.setImage(toolBar.getIconManager().getTransportIconPlay1());
        this.play.setToolTipText(toolBar.getText("transport.start"));
      }
    }
  }