@Override public void run() { final Icon oldIcon = icon; try { icon = createIcon(size); } catch (NotFoundException e) { icon = getDefaultIcon(size); } if (oldIcon != icon) { fireIconChange(oldIcon, icon); // FIXME: should be in the EDT? } } });
return (icon != null) ? icon : getDefaultIcon(size);
return (icon != null) ? icon : getDefaultIcon(type, size);
@Override public void run() { final Image oldIcon = icon; try { icon = createIcon(type, size); } catch (NotFoundException e) { icon = getDefaultIcon(type, size); } if (oldIcon != icon) { fireIconChange(oldIcon, icon); // FIXME: should be in the EDT? } } });