In the Properties dialog for your NetBeans project, pull down the Source/Binary Format menu, and select JDK 1.4.