I am running Mac OSX lion and have a Java project in netbeans where I would like to use string switch statements. I downloaded and installed the OpenJDK7 and I think I have configured the project to use the Java 1.7 properly.
In the Project Properties I have set JDK 7 to the platform:

It is showing up as JDK 1.7 in the Libraries section in the Projects Window.

However, I still get a compilation error saying that switch with strings is not supported in 1.6

Am I missing a step here?
To fix this, I followed the very comprehensive tutorial from the netbeans website found here:
http://netbeans.org/kb/docs/java/javase-jdk7.html
Specifically I had forgotten to set the
Sources/Binary Formatto JDK 7. You can do this in the bottom right of theSourcessection of theProject Propertieswindow.