JGoodies forms ROCK!
I'm sorry, I just had to start a Forms appreciation thread :-)
Compared to all the GridBagLayout code I had (generated from NetBeans GUI Builder) coding the layout by hand in Forms is so dead easy once you get the hang of it and involves so little code:
JPanel buttonBar = ButtonBarFactory.buildOKCancelBar(jButtonOK,jButtonCancel);
//create the layout
FormLayout layout = new FormLayout(
"pref : grow",
"fill : pref : grow,5dlu,center : pref");
PanelBuilder builder = new PanelBuilder(layout);
CellConstraints cc = new CellConstraints();
I had about 5-6 times as much grid bag layout code. And I love the ButtonBarFactory class that automatically generates prefefined JPanels for common button sets suck as OK/Cancel, OK/Cancel/Help, etc...plus, if I remember the docs correctly it even switches the button order around to respect each OS's default settings (I think on Mac they are reversed compared to Windows).
Really, yet another great piece of code by Karsten Letzsch. This project should be on the shortlist of all Swing programmers.