Reverting Swing Application to Java SE 1.5
By David Coldrick on Jul 10, 2007
Got bored with running my home-grown bookmarker application in a Windows virtual machine on my Mac: decided to regress from Java SE 6 to JDK1.5 so it would run directly on the Mac between now and October's Leopard release. :-( Moved the NetBeans project files across, opened the project in NetBeans, and, of course, had lots of errors, mostly due to the references to GroupLayout stuff that had been generated by the NetBeans Matisse capability. So how do I get nb to regenerate the code for the layout to use the swing-layout library? Turns out to be easy … once you know how. For each form, with the Inspector, choose Properties, then change the Layout Generation Style from "Standard Java 6 code" to "Swing Layout Extensions Library". Clean and build, and you're done.