I have a table created over AbstractTableModel. In this table I have a rows. And I need add ActionListener with parameter from column "ID from database" - viz. Image. This ActionListener should call when you double click the row. Image
So my question is how to get the parameter from the table ActionListener to JDialog.
Thank you for any help.
MouseListener
to detect when the user clicks the table, How to Write a Mouse Listener for more detailsJTable#columnAtPoint(Point)
andJTable#rowAtPoint(Point)
to get the row and column values for the point the user clicked atJTable#getValueAt
to get the value of the cell at the given row/column position