Selecting a "ship" in a scene

I’m playing around with doing a Homeworld-esque type game. I want to be able to select a ship by clicking on it.

From everything I’ve read it looks like I need to create a MouseBehavior which on a mouse click does a PickRay to return the closest object. Is that correct?

I didn’t see any examples of this sort of thing in the tutorial or on j3d.org (they always use MouseRotate/Translate/Zoom). Any example code out there I can pick at?

In the demos that come with tutorials there are some picking demos, I think. I’m not going to put my life on edge over that information though…

Actually I finally found something similar to what I was looking for in the demos that are in the j2sdk demo directory. PickDragBehavior in the Four by Four demo was a good start.