This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Half of the people I know who use Swing say that GridBagLayout is indespensible and they use it often. The other half think it is too complex and should be avoided like the plague. Where do you stand on that?
However, BoxLayout and Box will solve most of your problems; besides it's flexible and at the same time not complex. Works for me in most cases. As for GBL, if you get things on paper, it's not too complex to key in those things. - Manish
hi, I am with the first group. I don't think GridBagLayout is complex. I had a fast look at TableLayout and I couldn't make out any advantage over GridBagLayout. Actually, I think GBL is quite straight forward, but the API documentation is a pain. you have to do trial/error to find out what the constraints are for. Chantal [ April 03, 2003: Message edited by: Chantal Ackermann ]
I wrote a very extensive Swing applet application for one year and I say I'm one of those GridBagLayout Federation user. I started first using VisaJ for creating GUI done some trial and error then i figured out how the GridBagConstraints works, yeah its very complex and confusing at the first time but when you get the hang of it you can code GUI with your eyes closed.