I am using a Jpanel an adding JLabels that contains Icons to it. I am using GroupLayout. My problem is that when I try to add the seventh component the Jpanel changes its size by itself although there is still enough space for it to add other components.
The normal working of the Jpanel :
when I add more elments the JPanel changes the size although there is enough space for new element to be added
Any help will be highly appreciated