Meaningless Drivel is fun!
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 Interview Guide this week in the Jobs Discussion 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
It's not a secret anymore!