protected Icon findUsableIcon(Device device) { // Needs to be certain format and size for (Object o : device.getIcons()) { Icon icon = (Icon) o; if (icon.getWidth() <= 64 && icon.getHeight() <= 64 && isUsableImageType(icon.getMimeType())) return icon; } return null; }
@Override public String getMimeType() { return icon.getMimeType().toString(); }