Netbeans, Matisse, Swing, JDK5 & JDK6

This is more a related to a combination of Netbeans, the JRE and Swing.

I'm developing a Swing application in Netbeans (currently NB 6 M10) with JDK/JRE6. I'm using Matisse so there is quite a bit of code automatically generated for Swing components by Netbeans in my classes.

Yesterday I wanted to give a copy of my application to a friend to test, but he only has JRE5 installed. Aha, I thought, I'll just re-compile using JDK5. Unfortunately lots of Netbean's auto-generated code fails to build. I think it's mostly the layout related that fails.

Does anyone know if it's somehow possible to re-generate this code automatically under JDK5? I read somewhere there were no API changes between JDK5 and JDK6 (apologies if I'm mis-informed).

Thanks

[785 byte] By [BobCrivensa] at [2007-11-27 9:54:44]
# 1

6.0 m10 will run on both Java 5 and 6, but...

There are API changes between the two. That's what causes the major version identifier to change from 5 to 6. Apparently you are using some NB features that require Java 6. Remove whatever it is in your code that causes NB to need Java 6 and you could do what you want.

ChuckBinga at 2007-7-13 0:24:40 > top of Java-index,Desktop,Core GUI APIs...
# 2
I would but the problematic code is auto-generated by Matisse. I need to switch the JDK5 and then force Matisse to re-generate all of the Swing layout code.Thanks
BobCrivensa at 2007-7-13 0:24:40 > top of Java-index,Desktop,Core GUI APIs...