You are going to need to use a Layout Manager, or at least set values on the default layout manager. You can take a look at the Laying Out Components Within a Container lesson in the Sun Java Tutorial. The book Head First Java has a great couple of chapters on Swing and using Layout Managers.
I hope that helps.
posted 8 years ago
Welcome to JavaRanch
We shall be moving to new software next week. We shall be closed for several hours on 3rd January.
This sort of question is usually discussed on the Swing forum, so I shall move you there.
Get out of my mind! Look! A tiny ad!
the new thread boost feature: great for the advertiser and smooth for the coderanch user