• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in GridBagConstraints.fill

 
Punit Jain
Ranch Hand
Posts: 1015
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
GridBagConstraints.fill is not working...
here is my code..


when i m maximizing my JFrame all of my components are coming to center they are not filling the horizontal space..
i mean instead of filling the remaining horizontal space they are coming to center with same size..
although i used


what i m doing wrong or what else i need to do to fill the horizontal space??
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not what fill does. Read the API. Also read up on weightx and weighty.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Also read up on weightx and weighty.

he won't.

in his other topic exactly the same advice was given for exactly the same problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic