public void rebuildPanel(){
  if (activeWorker != null && !activeWorker.isDone()) {
    activeWorker.cancel(true);
  }
  panelImages.removeAll();
  panelImages.revalidate();
  scrollPane.repaint();
  activeWorker=new ImageLoader(mediaFiles);
  activeWorker.execute();
}

public void rebuildPanel ( ) { if ( activeWorker != null && ! activeWorker . isDone ( ) ) { activeWorker . cancel ( true ) ; } panelImages . removeAll ( ) ; panelImages . revalidate ( ) ; scrollPane . repaint ( ) ; activeWorker = new ImageLoader ( mediaFiles ) ; activeWorker . execute ( ) ; }
trigger to rebuild the panel
