File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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 agree. Here's the link:
subject: JComboBox & JPopupMenu
It's not a secret anymore!