File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Layout manager problem (horizontal & vertical boxes) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Layout manager problem (horizontal & vertical boxes)" Watch "Layout manager problem (horizontal & vertical boxes)" New topic

Layout manager problem (horizontal & vertical boxes)

David Johnson

Joined: Mar 27, 2005
Posts: 1
The code below produces the following inside one horizontal (master)box: A horizontal box containing a JComboBox, a JFormattedTextField, a JLabel, and a vertical box containing 4 JCheckBoxes.

My problem: The four items contained in the horizontal box are stretched vertically no matter what I do. I'd like to be able to control the vertical size.

Additionally, if anyone can point out a better way of doing this, I'm all ears. I'm certain that there must be a better way of doing this.

Thank you very much.

[ March 27, 2005: Message edited by: David Johnson ]
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
I agree. Here's the link:
subject: Layout manager problem (horizontal & vertical boxes)
It's not a secret anymore!