aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "configure cell size in GridBagLayout" Watch "configure cell size in GridBagLayout" New topic

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:
subject: configure cell size in GridBagLayout
Similar Threads
Component Cell Width
Laying out components in JPanel(s) and LayoutManager(s)
GridBagLayout - view grid lines
Fixed Cellsize in GridBagLayout