1

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.

MadProgrammer
  • 343,457
  • 22
  • 230
  • 366

1 Answers1

1
MadProgrammer
  • 343,457
  • 22
  • 230
  • 366
  • 1
    Use a MouseListener to detect when the user clicks the table == ListSelectionListener, MouseListener pretty ignored KeyEvents – mKorbel Nov 29 '14 at 12:00
  • @mKorbel But, `ListSelectionListener` doesn't detect *"when you double click the row"* so it won't meet the requirements – MadProgrammer Nov 29 '14 at 20:28