Dimension () { Insets i = spinner.getInsets(); int minHeight = isCompact(spinner) ? JBUIScale.scale(10) : JBUIScale.scale(12); return new Dimension(ARROW_BUTTON_WIDTH.get() + i.left, minHeight + (direction == SwingConstants.NORTH ? i.top : i.bottom)); }