/** * Sets the image representing the file. * * @param path The path to the file. */ void setThumbnail(String path) { if (path == null) return; this.thumbnail = Factory.createIcon(path, Factory.THUMB_DEFAULT_WIDTH / 2, Factory.THUMB_DEFAULT_HEIGHT / 2); if (thumbnail != null) { label.setText(""); label.setIcon(thumbnail); label.repaint(); revalidate(); repaint(); } }