This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Layout issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Layout issue" Watch "Layout issue" New topic

Layout issue

George McCain
Ranch Hand

Joined: May 06, 2003
Posts: 35
can anyone give a suggestion on how to fix this layout issue
I have a panel "A" that is border layout. and another panel "B" that is GridLayout(0,3)
on panel "B" i add panels 1,2 and 3. which results in this layout

I would like for the 2nd panel to line up vertically to the other panels.
any ideas.
I did try a different layout manager HTMLLayout which was ok, but I would like to try it w/o using 3rd party layout managers.
Thanks in advance
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
GridBagLayout would work well.
Don't get me started about those stupid light bulbs.
subject: Layout issue
jQuery in Action, 3rd edition