Dimension (JComponent c) { Font labelFont = StartupUiUtil.getLabelFont(); FontMetrics fontMetrics = c.getFontMetrics(labelFont); return new Dimension( ImagesIcons.ThumbnailBlank.getIconWidth() + 10, ImagesIcons.ThumbnailBlank.getIconHeight() + fontMetrics.getHeight() + 15 ); }