This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GridBagLayout  RSS feed

 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I set the weights for columns when using GridBagLayout, it does not
work correctly
For example when I set weightx=50 for both columns, it comes out more as 45% and 55%.

It is making it very awquard for me to get the right size JFrame, and the right weights in the 4 columns to display my GUI correctly, can anyone help?

Thanks
 
krishnakumar K R
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Code please...

Cheers,
Krish
 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, but I've scrapped that idea now.
I'm using JInternalFrames, and it seems to work
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!