Menus stay extended in some scenarios
I have one application in which i have used JMenuBar with menus & submenus.
the functionality of menus is working fine but in some scenarios menus does not get closed.
1. click on menu then menu get extended.
2. when i click outside the menu ... the menu get closed. --- working fine
2. but when i perform some other operations in my application & then follow same process which is mentioned in step 1 & 2.
In this case when I click outside the menu then that menu doesn't get closed, it stay extended until I am not clicking to that menu again.
Please help me and take me out from this issue.
Thanks in advance,