Skip to content

Tag: mouseevent

How can I call the mouse right click event in SwingGui?

I have a table. If I right-click I got a JPopUpMenu but before the pop-up I want to select the row where the right-click event is done. Here is what I’ve tried. In that event, I cannot get any output from the console when I right-click. However, when I left-click, points are printed to the console. java…