Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JPopupMenu won't go away when application is moved

843805Jul 20 2006 — edited Jul 20 2006
Sorry, I have to reask this question. I am pretty much stuck with this.

I have JPopupMenu that contains a JScrollPane that has a JPanel inside it.

My application's main component is a JFrame, the above JPopupMenu is part of a search panel (JPanel). Every time when I make JPopupMenu visible, then left-click on application's title bar, and move the whole application away, JPopupMenu stays in the original position! If I click on any other place, such as tool bar, or any other component, JPopupMenu will disappear.

This is really strange stuff. My guess is that titile bar cannot detect mouse events? Is that true? Is there any way I can make it disappear once user holds title bar and move the whole application away?

thanks in advance!

Message was edited by:
jack_wns
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 17 2006
Added on Jul 20 2006
6 comments
96 views