I have a window with a JTable
, where only the selection of an entire row is valid, not just one field. The issue is that the window already opens with the first line selected, and I would like to disable it.
In this same window I have a JButton
that is already disabled at the time of its creation, however I would like to activate it as soon as the user selects any line of JTable
...
In short: How do I disable automatic selection of the JTable
line at the time the window opens? How to activate a button when the user selects any line of this same JTable
?