To change the type of the light (positional or directional), set the w component of Light.setPositionOrDirection properly ie 0 or 1. You can play with the model viewer with the various parameters of a Light.
For more informations, you can give a look the
Light javadoc or better how the fixed pipeline lights works in opengl.