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).