Right click behaviour

O

oulan bator

Hi all,

I would like to have on my Jlist a right click behaviour just like the
one in Excel :

when I right click on an item in my jlist in want :
- if the cell is selected, then the selection is not changed, and the
popupmenu popups
- if the cell is not selected, then the selection is changed, to that
item, and only then the popupmenu poppups !

I'd like to do it using the "setComponentPopupMenu" method (that I
already use), because I don't wan't to change all my codes to introduce
a popupmenu listener etc...

I'm using the windows look and feel, should I report this as a bug ?

Best regards
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top