I have a jtable and inside this table is a column of checkboxes (other info on following columns).
if the user clicks on the checkbox to change it, which it does, there is a popup that comes up for an administers password approval... got that. If the approval is accepted, the new value remains unchanged, if it isn't, the value of the checkbox is reverted back to its original value.
What I need is the general syntax for getting the current state of the checkbox inside that table and changing it's state
Here is what I was thinking.....
if (test == "false") // password confirmation failed - need to reset checkbox
if (Level_0.getValueAt(row, col) = true) //row and col is the location of ckbox in the table Level_0
{Level_0.setValueAt(row, col).setSelected(false);}
else
{Level_0.getValueAt(row, col).setSelected(true);}
Line #2 is to get current state of the checkbox.
Lines #3 and #5 reverses the state of the checkbox.
Thanks in advance for all the help