DIGIT-ARC read-only archive · snapshot: July 23, 2026

using GridBagLayout

2 posts · originally from https://geek.digit.in/community/threads/using-gridbaglayout.83554/

P
peyoush_thakur Original post #1
Mar 25, 2008 at 11:37 PM
Hi everyone! Can you please tell me how is display area divided in cells and in how many cells with GridBagLayout in java?
JGuru
JGuru #2
Apr 2, 2008 at 11:15 AM
@peyosh, GridBagLayout is a very complex Layout Manager!!! It takes minimum 6
months to master it. Follow my advice :

1) Master all the Layout Managers first , see this AWT Guide

*java.sun.com/developer/onlineTraining/GUI/AWTLayoutMgr/shortcourse.html

2) Use NetBeans IDE, it comes with Matisse( GUI Builder) : *www.netbeans.org/features/java/swing.html

Download NetBeans from *www.netbeans.org

Matisse is a RAD tool for creating GUI for Java. It's as easy as drap & drop &
layout the components as you like!!!

Using GridBagLayout : *java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html