This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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.