JButton to detect if cell in a table is selected
Well, I need to make some sort of conditional check.
There's a table and a delete button...so far I'd made it works so that when the table is selected the listselectionlistener will pick the data and then delete button will did the delete action after popping up delete confirmation.
However as the button works on with its own listener it'll pop up delete even when there's no cell selected. so I need to make a conditional check to check whether a cell is selected or not and only perform the action if a cell is selected.
I'd appreciate if anyone can help with this cause I seem stuck in this.
Thanks in advance,