jTable popup box
Is there a way to allow the user to right click (I have the code to detect the right click already) but have no idea how to have a mini popupbox (like the one that pops up if you right click on the window in here) inside of a jTable.
Basically what I want is when a user right-clicks on a row, have a lil box pop up on the side of where the mouse is (like the ones in Internet Explorer if you right click) and they can choose one of the few selections.
Re: jTable popup box
1) Add a MouseListener to the JTable (you can filter using the MouseEvent.getButton() mask to look for right clicks b) Use a JPopupMenu (Java Platform SE 6) To show the menu