On this joystick, the x-axis (left-right) is axis 1; the y-axis (up-down) is axis 2; the z-axis (twist) is axis 3; the throttle (on the bottom of the base of the stick) is axis 4.
To access these axes in Java:
Code:
Joystick joystick = new Joystick(1);
joystick.getRawAxis(4);
// etc.
You can also use the joystick methods that don't use the raw axes, however I like using the raw ones.