This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Help in GroupLayout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Help in GroupLayout" Watch "Help in GroupLayout" New topic

Help in GroupLayout

adeeb alexander
Ranch Hand

Joined: May 29, 2008
Posts: 268
Hi all
i have arranged two panels using grouplayout but they use 50% each of space. How can i set the size of panels in grouplayout.

Thanks and Regards
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167

GroupLayouts are usually used by IDEs and as such are not supposed to be used for handcoding. I would recommend using something simpler.
A GridLayout(1,2) would give you a layout for two panels occupying identical space in two columns.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: Help in GroupLayout
Similar Threads
best layout to use
Problem when adding a new JTextPane to GroupLayout at run time
Adding a radio button to a sequential group using a loop
How to adjust sizes and positions in a JPanel/JFrame
Best Swing Development Environment