Thnx for replying. Actually i need something like...
I have a combobox and i click on the drop down button... i can see all the items of combobox from where i can select
Now If i right click on any of the items of the combobox then my popup menu should appear without hiding the combobox items.
For example :
If i have a 'copy item' on my popup menu and i right click on a combobox item (say 'Apple') while all other items are displayed...popup menu should appear and whn i'll click on 'copy item', the value 'Apple' should get copied to the clipboard.
I hope tht explains the problem...please help how can i get through this.
I understand, but I'm not sure how to do that. I guess you can add a MouseListener to the JComboBox component, but I don't know how it will behave on rigth click button.
My advice is to use a two-levels JMenu, will be easier and more usable.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.