I have a panel that is populated with labels, and once some are added to the panel, all is well. However, after i remove everything in the panel with panel.removeAll(); and add some more labels, this whitespace appears that is shown in the image below:

Can anyone guide me on how to remove this excess whitespace?
When you remove or add components from a container that’s already visible onscreen, you must call
validate()on the container to get the layout fixed up. Until you do, the appearance onscreen is undefined, and usually bad.