Dimension (Object component) { String text = getString(component, "text", ""); java.lang.ref.Reference.reachabilityFence(text); int columns = getInteger(component, "columns", 0); FontMetrics fm = getFontMetrics(getFont()); return new Dimension(((columns > 0) ? (columns * fm.charWidth('e')) : 76) + 4, fm.getAscent() + fm.getDescent() + 4); // fm.stringWidth(text) }