Right-click > Events > Action > actionPerformed adds the mouse-down event to a NetBeans JButton. How is the mouse-up event added?
On Net Beans do this :
Right=Click -> Events -> Mouse -> MouseReleased.
Hope that might help
Regards