synchronized void startRunningImages(){
  queue.removeAllElements();
  Vector urls=new Vector();
  for (Enumeration e=images.keys(); e.hasMoreElements(); ) {
    Component imgComp=(Component)e.nextElement();
    String imageUrl=(String)images.get(imgComp);
    int urlIndex=urls.indexOf(imageUrl);
    if (urlIndex != -1) {
      ResourceThread t=(ResourceThread)queue.elementAt(urlIndex);
      t.addLabel(imgComp);
    }
 else {
      ResourceThread t=new ResourceThread(imageUrl,imgComp,htmlC,this);
      queue.addElement(t);
      urls.addElement(imageUrl);
    }
  }
  urls=null;
  images=new Hashtable();
  if (!startDequeue()) {
    htmlC.setPageStatus(HTMLCallback.STATUS_COMPLETED);
  }
}

synchronized void startRunningImages ( ) { queue . removeAllElements ( ) ; Vector urls = new Vector ( ) ; for ( Enumeration e = images . keys ( ) ; e . hasMoreElements ( ) ; ) { Component imgComp = ( Component ) e . nextElement ( ) ; String imageUrl = ( String ) images . get ( imgComp ) ; int urlIndex = urls . indexOf ( imageUrl ) ; if ( urlIndex != - 1 ) { ResourceThread t = ( ResourceThread ) queue . elementAt ( urlIndex ) ; t . addLabel ( imgComp ) ; } else { ResourceThread t = new ResourceThread ( imageUrl , imgComp , htmlC , this ) ; queue . addElement ( t ) ; urls . addElement ( imageUrl ) ; } } urls = null ; images = new Hashtable ( ) ; if ( ! startDequeue ( ) ) { htmlC . setPageStatus ( HTMLCallback . STATUS_COMPLETED ) ; } }
starts downloading the images ( this is called only after all css files have been downloaded , since they may contain image references )
