How do I create a right click context menu in Java Swing?
- by Wayne
I'm working on a school project and we want to implement a right click pop-up menu in the gui.
Currently we are doing something like creating a JMenu on right click and setting its location to that of the mouse's position...
This seems really ugly and is very buggy, is there any better way of doing this? I'm sure there must be.