@Override
  public void paint(Graphics g, JComponent c) {
    ThumbnailComponent tc = (ThumbnailComponent)c;
    if (tc != null) {
      UISettings.setupAntialiasing(g);
      paintBackground(g, tc);

      if (tc.isDirectory()) {
        paintDirectory(g, tc);
      }
      else {
        paintImageThumbnail(g, tc);
      }

      // File name
      if (tc.isDirectory() || tc.getImageComponent().isFileNameVisible()) paintFileName(g, tc);
    }
  }
@Override
  public void paint(Graphics g, JComponent c)