• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Matthew and Pavel: Gridbaglayout?

 
Rick Portugal
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am with the first group.
 
Sudha Lakshman
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Me too... first group.... it might seem a little tough in the beginning.. but later it gets better....
 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Matt Robinson
author
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd say we're both in the second camp; it really seems to comes down to a matter of taste and what works best for you
 
Mohan Panigrahi
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use table layout. It is a significant improvement over grid bag layout.
You can freely download tablelayout.jar
Thanks
Mahesh
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Richard Teston
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic