I'm trying to add a JMenu component for every column in my JTable. The tricky bit is that I'd like the menu to be unique for each column e.g. right clicking on a column header displays a menu which is unique for the column. Anyone has an idea of how to achieve such behavior?
MouseListener
to the table headercolumnAtPoint(...)
method of JTableHeader
to get the column that was clicked