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 configure cell size in 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 "configure cell size in GridBagLayout" Watch "configure cell size in GridBagLayout" New topic
Author

configure cell size in GridBagLayout

Tariq Ahsan
Ranch Hand

Joined: Nov 03, 2003
Posts: 116
How can I setup the cell size in GridBagLayout?
Stuart Gray
Ranch Hand

Joined: Apr 21, 2005
Posts: 410
If I understand you correctly, you need to use the gridwidth and gridheight variables, e.g: layout.gridwidth = 2;
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: configure cell size in GridBagLayout
 
Similar Threads
GridBagLayout - view grid lines
Fixed Cellsize in GridBagLayout
Component Cell Width
Laying out components in JPanel(s) and LayoutManager(s)
GridBagLayout