jcommon
jcommon copied to clipboard
VerticalLayout minimum+preferredLayoutSize insets are added twice
both methods starts with declaring width and height as follows
int height = ins.top + ins.bottom;
int width = ins.left + ins.right;
and adding the insets again in the return statement
return new Dimension(width + ins.left + ins.right,
height + ins.top + ins.bottom);