Hmm, it works here with the code from the manual. Have you set the panel event? Note it's not the button, it's the panel that reacts on the mouse click and sets the event type.