File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
jQuery in Action, 3rd edition