• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Matthew and Pavel: Gridbaglayout?

 
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?
 
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am with the first group.
 
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....
 
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
 
author
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
 
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
 
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 ]
 
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.
 
A feeble attempt to tell you about our stuff that makes us money
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic