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 Help in GroupLayout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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: 10826

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
jQuery in Action, 3rd edition