Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes problem in GridBagConstraints.fill Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "problem in GridBagConstraints.fill" Watch "problem in GridBagConstraints.fill" New topic
Author

problem in GridBagConstraints.fill

Punit Jain
Ranch Hand

Joined: Aug 20, 2011
Posts: 902
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

Joined: May 03, 2008
Posts: 4165
    
    3

That's not what fill does. Read the API. Also read up on weightx and weighty.


luck, db
There are no new questions, but there may be new answers.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in GridBagConstraints.fill
 
Similar Threads
Applet sizing problem
Creating and opening a window if the button is clicked in an applet
Applet doesn't show up with IE
Applets
Applets