Add a mouse listener to the list, and in mouseClicked method detect for right mouse click, then decide whether should pop up the JPopupMenu or not.
Originally posted by Dave Donohoe:
Hi all - can anyone tell me the easiest way to add a Right Click Popup Menu onto the items in a JList?
Thanks,
D