Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GridBagLayout... Components always centered vertically?

 
Shawn Rieger
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a panel, in it a few components. I've gotten the components inside the panel to line up just how I want them. But when I add the panel to the frame at location 0,0 (Should be Top Left) its still centered vertically on the frame. Why is this? I just want my components to start out in the top left hand corner of my frame and span out from there. How can I do this. My code is below...

 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic