There are event listener classes specifically for JMenus:
javax.swing.event.MenuListener
and
javax.swing.event.MenuDragMouseListener
The methods you need to call to associate these to a component are
JMenuComponentName.addMenuListener(MenuListener m);
and JMenuComponentName.addMenuMouseDragListener(MenuDragMouseListener m);
, respectively.