Actually, I figured it out. Turns out that Netbeans 4.0 isn't quite yet ready for real use yet. I fired up my copy of Netbeans 3.6 and my code worked like a champ.

Is anyone else interested in this? I'd be happy to clean it up a bit and hand it over to the owner of Jemplode.