update(); }
int n = downloadThread.getPercentComplete(); boolean barVisible = progressBar.getVisible(); if(n > 0 && n < 100) { lblState.setText(strState + " "+n +"%"); progressBar.setSelection(n); if(!barVisible) progressBar.setVisible(true); }else { lblState.setText(strState); if(barVisible) progressBar.setVisible(false); } lblState.pack(); if(newState) synchronizePlaylist(playListManager, tblSongs); }
      public void run() {        update();      }