It doesn't sound like you have the latest Java SDK. Newer demo code has been added since the initial release.
Follow the directions on
http://first.wpi.edu/FRC/frcjava.html, under
"Getting the Software" to update both the latest NetBeans modules and
the "mandatory LabVIEW update".
If you think you already have the latest modules and they are still not showing up, please check the version.datestamp in the version.properties file in your sunspotfrcsdk directory. The latest version is 201002042135 => 2010/02/04 2135