This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GridBagLayout

 
Orna Vel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a problem, and have no idea what to try next.
I use GridBagLayout to place my Components in appropriate places on the screen. The problem is that when I call my code the first time it appears in totally different size on the screen, and takes it's right place just after the first resizing or maximizing/minimizing the whole window.
I know that the problem is in controlPanel, which has a lot of buttons. When I replace it with another "dummy" panel, the picture appears to be ok. But how I can make my code running properly anyway?

I tried: setVisible(false) - setVisivle(true) - does not help much.


Here is my code:



where


 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic