No selected option on Radio button

Hi everyone,

I’m just curious if its possible to have no selection on the radio buttons when I open a window?
Like the default would be no selection on the radio buttons.

Thank you.


What I would do is to have an additional radio button that is not visible.

A script on the window: internalFrameOpened event

value = 1 system.gui.getParentWindow(event).getComponentForPath('Root Container.Radio Button').selected = value

That should do what you want

[code]from javax.swing import ButtonGroup

rb = event.source.parent.getComponent(‘Radio Button’)

bg = rb.getModel().getGroup()

or from visionWindowOpened

[code]from javax.swing import ButtonGroup

rb1 = system.gui.getParentWindow(event).getComponentForPath(‘Root Container.Radio Button’)
bg = rb1.getModel().getGroup()