How do I create a right click context menu in Java Swing?
Posted
by Wayne
on Stack Overflow
See other posts from Stack Overflow
or by Wayne
Published on 2009-04-20T05:01:07Z
Indexed on
2010/04/01
18:03 UTC
Read the original article
Hit count: 217
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.
© Stack Overflow or respective owner