File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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
alexander
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9990
    
    7

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: http://aspose.com/file-tools
 
subject: Help in GroupLayout
 
Similar Threads
best layout to use
How to adjust sizes and positions in a JPanel/JFrame
Adding a radio button to a sequential group using a loop
Best Swing Development Environment
Problem when adding a new JTextPane to GroupLayout at run time