private static int paintImageCaps(Graphics g, ImageComponent imageComponent) {
    String description = imageComponent.getDescription();

    Font font = getSmallFont();
    FontMetrics fontMetrics = g.getFontMetrics(font);
    g.setColor(Color.BLACK);
    g.setFont(font);
    g.drawString(description, 8, 7 + fontMetrics.getAscent());

    return fontMetrics.getHeight();
  }
private static int paintImageCaps(Graphics g, ImageComponent imageComponent)