sp.setMinimumSize(givenDimension);
sp.setMaximumSize(givenDimension);
sp.setPreferredSize(givenDimension);
}
sp.setVisible(true);
sp.invalidate();
return sp;
}
public static JComponent wrapCaption(JComponent comp, String caption) {
JPanel panel = new JPanel();