jQuery in Action, 2nd edition
The moose likes Swing / AWT / SWT and the fly likes Why does a Panel above effect the Panel layout below? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Why does a Panel above effect the Panel layout below?" Watch "Why does a Panel above effect the Panel layout below?" New topic
Author

Why does a Panel above effect the Panel layout below?

Brady Diggs
Ranch Hand

Joined: Jun 26, 2008
Posts: 42
Hi everyone.
Thanks in advance for reading this.
It's been a while since I worked with Java AWT.
Why does a Panel (Panel1) affect the layout of a Panel
(Panel2) below it?
Panel1 uses FlowLayout. Panel2 uses GridBagLayout.
They are both on another Panel that uses BorderLayout.

Any ideas?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16487
    
    2

Here's an idea, based on the information provided: the upper panel affects the lower panel because it causes the lower panel to have less space to be laid out in.

Bear in mind that the idea is based on the information you provided, which is almost nothing. If you had an example of this effect, you could post it and ask a specific question about it.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Why does a Panel above effect the Panel layout below?
 
Similar Threads
Help sorting out what combination of layouts will provide the result I need
CardLayout contents not available
Layouts!!!
Is this a TableLayout bug?
Cant able to set Background color for panel..