Error JTable getSelectedRow ()

0

I'm doing a project for class with a graphical interface.

Well basically it shows the information in a JTable, then I should select a single row and press a button to perform an action on the data I have in the table. Well when I call table.getSelectedRow () it always returns -1.

I've already tried making table.setRowSelectionAllowed (true).

    
asked by Gray 05.05.2018 в 02:04
source

0 answers