In a set of radio buttons of the same group, only one can be selected at the same time. I would like to have the same behaviour with a normal button.
Imagine there's a row of 3 buttons. When a button is selected it changes: but.setSelected(true) and the other two buttons should be NOT selected: but.setSelected(false)
Now, is there a generic, simple and clean solution to accomplish that in Java (Swing) ?