This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Interesting JPop-up menu Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Interesting JPop-up menu Problem" Watch "Interesting JPop-up menu Problem" New topic
Author

Interesting JPop-up menu Problem

Ravi Sathish
Ranch Hand

Joined: Feb 26, 2002
Posts: 131
Hi Ranchers,

I have a JPop-up Menu which pops up on right-click; everything works alright with the menu;

Pop-up menu shows up until I select a menu item or I click on some other component.

Now the problem area is:

1> My menu is dynamically generated; I mean to say the data can change due to external factors too.. and b'coz of JPop-up menu perisistence ...user may click a undesirable menu-item.

2> Is there a way I could make the pop-ip invisble as soon as the user clicks outside the application (This is not happening)

Please advice; any workarounds; can I do something at Mouseadapater level itself?

TIA
Ravi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Interesting JPop-up menu Problem
 
Similar Threads
question about Help document
how to keep the popup while clicking on JCheckBoxMenuItem?
PopUp Menu for JTree
JPopUPmenu Problem of PopUp scroll
jTable selectedRowIndex at mouse click