progressBar.setSelection(currentTimeInSeconds); currentTimeText.setText(formatTimeToString(currentTimeInSeconds)); currentTimeText.pack();
if (this.currentTimeInSeconds != currentTimeInSeconds) { this.currentTimeInSeconds = currentTimeInSeconds; progressBar.setSelection(currentTimeInSeconds); currentTimeText.setText(formatTimeToString(currentTimeInSeconds)); currentTimeText.pack(); }
  public void setCurrentTime(int currentTimeInSeconds) {    progressBar.setSelection(currentTimeInSeconds);    currentTimeText.setText(formatTimeToString(currentTimeInSeconds));    currentTimeText.pack();  }