I\'m using Swing GroupLayout and I\'m confused about the values GroupLayout.DEFAULT_SIZE and GroupLayout.PREFERRED_SIZE. I never know when to use each one of them in methods like GroupLayout.addCompon
I have done an layout in my GUI but it did not work , all the component just appear one after another.