How to make a mouseEvent from a Component to be recognized in a subcomponent?
<p>I have a JTabPane, and i have added a MoustListener to it(for tab's title).
When i press right click, a popup menu is created.
i need to make it invisible when i press the mouse button in any place of window. how can i do this?? </p>

<p>(the MouseListener is applied only for tab's title.)</p>
