jgoodies binding several jtoggle button

303 Views Asked by At

I would like to bind 3 toggle button with my domain object. The 3 toggle should be mutually exclusive, if one of the 3 boolean property in my domain object is true, then the toggle corresponding is selected and the other 2 are unselected.

I have a solution based on RadioButtonAdapter, but i find it strange. So I was wondering if there was another solution...

1

There are 1 best solutions below

0
On

Try putting your radio-buttons in a ButtonGroup. Then bind your buttons as usual with Bindings.bind.