If you refresh multiple times, the dialog keeps adding visual elements into
radio panel. It also keeps adding multiple radio buttons to the group. This
leads to a situation where you have your selected choice hidden underneath a
bunch of empty radio buttons.
In rebuildPanel() you need to clear the radioPanel and clear out the radio
group.
private void rebuildPanel() {
JPanel panel = radioPanel;
radioPanel.removeAll();
....
int len = 0;
File oldDevice = odkDevice;
JRadioButton activeButton = null;
odkDevice = null;
boolean first = true;
if (radioGroup != null) {
for (AbstractButton rb : Collections.list(radioGroup.getElements())) {
radioGroup.remove(rb);
}
}
Original issue reported on code.google.com by yano...@nafundi.com on 15 Aug 2012 at 4:13
Original issue reported on code.google.com by
yano...@nafundi.com
on 15 Aug 2012 at 4:13