This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why does a Panel above effect the Panel layout below?  RSS feed

 
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: 22374
42
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!