You may be talking about using GridLayout instead of FlowLayout
This article explains the difference and how to switch your project:
http://articles.techrepublic.com.com/5100-10878_11-5764852.html
How
ever, the article points out that FlowLayout is NOT the default, so I'm wondering if you perhaps changed it at some point?