Dienstag, 23. März 2010

Netbeans: Revert GUI from Java 6 to Java 5

If you are creating a gui with the netbeans formdesigner, then netbeans sometimes choose "Standard Java 6 Code" or "Swing Layout Extensions Libary" as default layout generation style.

The "Swing Layout Excentions Libary" causes a "NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group" if you don't deploy this libary with your project.

So solve this problem, you can change the "Layout Generation Style" in netbeans.
To do that, go in the design-mode of your code, then rightclick in the "Inspector" on the most top entry "Form xxxx.." and choose properties.
In the just opened properties dialog, choose "Standard Java 5 Code" as your "Layout Generation Style"



thanx to this blogentry GroupLayout converting Java 6 to Java 5