• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why does a Panel above effect the Panel layout below?

 
Brady Diggs
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 21878
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!