Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JComboBox & JPopupMenu

 
Eleni Fatourou
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic