Try debugging the code by adding some println statements that print out a message when a listener is called.
Also print out the values passed to the listener in the event object.