I’ve written a small set of Java classes that I’ve used to teach myself jinput, and to test how my Logitech 3D joystick works. Its open source, and may be useful to some other beginner.
http://pfarrell.com/java/joysticklib.tar.gz
It was written using Netbeans, but should work with any setup that can use the ANT scripts.