Option group with components


I want to make simple option group (set of radio buttons).
For each button there will be label and some input component (textbox, slider).
If radiobutton is selected corresponding input component will be enabled. If radio button is not selected corresponding component will be disabled.

Any help/advice how to achieve this thing?
I thougth about making my own set of checkboxes and manage them, but with more than 3 checkboxes this will be terrible.

a ui mockup will help better answer your question. But can’t you achieve this via value change listeners and setting componentToDisable.setEnabled(…)


you can create such a layout.

How? Could you show simple example?