This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JComboBox & JPopupMenu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JComboBox & JPopupMenu" Watch "JComboBox & JPopupMenu" New topic

JComboBox & JPopupMenu

Eleni Fatourou

Joined: Oct 03, 2002
Posts: 1
I am trying desperately to find a way to do this:
When a user right-clicks on an item of a JComboBox drop down list, a popup menu to appear (i would like to show options like edit, delete etc for the items)
After extending a JComboBox i came up with an element that shows a popup BUT i can not find a way to prevent the drop down list of Combo from hiding. Can anyone please tell me how to do this?
Here is the code:
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

"elefat" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

Thanks! and welcome to the JavaRanch!

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: JComboBox & JPopupMenu
It's not a secret anymore!