void (JComponent component, float factor) { final Dimension originalDim = component.getMinimumSize(); final Dimension newDim = new Dimension(originalDim.width, Math.round(originalDim.height * factor)); component.setMinimumSize(newDim); }