/** Stop animating this instance of <code>AbstractIconAnimator</code>. */ public void stop() { icon.setImageObserver(null); icon.getImage().flush(); Map map = (Map) contexts.get(context); if (map != null) { map.remove(key); if (map.size() == 0) contexts.remove(context); } }