But I don't know how I can get the row so I can get the object in the row and send it to JFrame constructor?
there are three choices
event from
JButton inside a JTable in the last column
must to returs proper coordinates fromJTables view
, you have to convert view to model in the case thatJTables view
issorted
filtered
column(s) is/are reordered
column(s) is/are hidden (removed from JTables view)
(and/or with) add
ListSelectionListener
toJTable
Mouse Events
can returns that too, read officialOracle tutorial How to use Tables - Specifying Tool Tips for Cells
for working code example