Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Which layout manager to use?

843806Nov 29 2008 — edited Nov 29 2008
I'm reading through the java tutorials on layout managers and I'm having trouble figuring out which one to use to do what I want.

This is what I have so far, the bottom panel contains two buttons and two drop downs in a GridLayout(3,2).
Original

Then I add two more panels to this panel and it looks like this:
After

This is bad because it makes the first 4 items get really big to be the same size as the bottom two. I like the way things are laid out but I don't like that the sizes changed. Is there a layout that will let me do this and not mess up the sizes?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 27 2008
Added on Nov 29 2008
9 comments
46 views