This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I do not have java 1.6 installed (only java 1.4 and 1.5) the swing generates code that uses java.swing.grouplayout which I can not compile using java 1.5
This could happen if the GUI form was originally created on JDK 6 (possibly by someone else?). Once created, the GUI form remembers what type of GroupLayout code it generates (so it's not changed back and force if the project is opened on different JDKs). You can change it - just open the form, select its root node in Inspector and go to properties - there's "Layout Generation Style" property which you can set to "Swing Layout Extensions" not to generate Java 6 code. Also check the global setting in Tools | Options -> Misc -> GUI Builder -> Layout Generation Style. If it is changed to "Standard Java 6 code", it forces new forms to generate Java 6 code no matter if Java 6 platform is present. This should be set to Default. In case you have this set to default and newly created forms still generate javax.swing.GroupLayout even if there is no JDK 1.6, then it is a bug - and we might need more information from you.
I am closing this incomplete issue as wontfix - reporter did not provide any additional info for a long time (hopefully it is because the problem was solved :) Crodrigu if you still encounter this problem, feel free to reopen this issue ant try to provide any additional info (see tpavek's last post) Thank you