Re: Layout (desperate) Help
pek wrote On 07/05/07 08:12,:
Please please please help me. I've tried every single Layout Manager
and a lot of combinations but cannot still make is work.
I created a prototype and uploaded a screenshot.
Here is how the panels should be placed in normal size:
http://pek.ekei.com/misc/help/exampleLayout_normal.png
Red boxes and buttons NEVER change size.
Yellow boxes expand left and right
and orange boxes expands everywhere.
Here is an example of the same window if resized to a bigger size:
http://pek.ekei.com/misc/help/exampleLayout_expanded.png
Please please help. I have no idea how to break this into smaller
panels and what LayoutManagers to use.
If possible, send me the code at my mail: p3k_me _at_ hotmail _dot_
com
If I understand what you're trying for, I think
this arrangement will do it:
- panel 1 uses BorderLayout
- NORTH place holds panel 2, using BoxLayout (Y_AXIS)
- panel 3 uses FlowLayout, and holds eight red boxes
- panel 4 uses GridLayout, and holds two yellow boxes
- panel 5 uses BorderLayout
- WEST place holds one red box
- CENTER place holds one yellow box
- CENTER place holds orange box
- SOUTH place holds panel 6, using BorderLayout
- WEST place holds one red box
- CENTER place holds one yellow box
- EAST place holds panel 7, using BoxLayout (X_AXIS)
- one red box
- panel 8, using BoxLayout (Y_AXIS)
- two gray buttons
.... but it's possible I've misunderstood you.
--
Eric.Sosman@sun.com