void (Graphics g, ThumbnailComponent tc) { ImageComponent imageComponent = tc.getImageComponent(); // Paint blank if (imageComponent.isFileSizeVisible()) ImagesIcons.ThumbnailBlank.paintIcon(tc, g, 5, 5); ImageDocument document = imageComponent.getDocument(); BufferedImage image = document.getValue(); if (image != null) { paintImage(g, tc); } else { paintError(g, tc); } if (imageComponent.isFileSizeVisible()) paintFileSize(g, tc); }