This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes text box - GridBagLayout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "text box - GridBagLayout" Watch "text box - GridBagLayout" New topic
Author

text box - GridBagLayout

Brandi L Love
Greenhorn

Joined: Feb 22, 2006
Posts: 2
Hello! I am wondering how I can modify this code correctly so that the size of the text boxes are limited. I've set a size but when I compile and run the text boxes are all a uniform size. I think the problem is that the GridBagLayout I'm using forces them to size to the window but I'm not sure how to change that. Any help would be greatly appreciated! The code is below...

Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Brandi L Love
Greenhorn

Joined: Feb 22, 2006
Posts: 2
Thanks, now my text boxes are the size I want them to be! Now, though, the text boxes are all lining up on the right edge of the largest text boxes and I want them to line up on the left edge. I'm guessing this has something to to with



but I'm not sure how to fix it. I tried changing relative to west and that just screwed everything up.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Not with what I tried to put up; one of us must have missed something.
Try this and let's see if we're on the same page.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: text box - GridBagLayout
 
Similar Threads
Not writing to new file...
file renaming...
fields not formatted correctly
Button click - String operation
GridBagConstraints Problem