This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I created a JTable and add a radio button. After I created another JTable when I click on the string of one row
I have to select and check on the radio button of the initial JTable, and found the radio button but I am not
shure what property or method allows me to check the radio button without using the mouse.
My code is:
Note that calling setSelected(false) will not uncheck a radio button. To do that, the usual trick is to add a radio button to the same button group but not add it to the user interface. When you select this invisible radio button all other radio buttons are unselected.