Code example for WeakHashMap

Methods: isEmpty

0
    dispose(); 
  } 
 
  public void dispose() 
  { 
    if( painters == null || painters.isEmpty() )
      freeImage(); 
    else 
      killFlag = true; // can't destroy image yet.
    // Do so when all painters are gone. 
  } 
 
  // java.awt.Image methods //////////////////////////////////////////////// 
 
  public int getWidth (ImageObserver observer)
  { 
    return getWidth(); 
  } 
 
  public int getHeight (ImageObserver observer)
  {