NetBeans: use a radio button group

It’s possible to unite several radio buttons into the group. For example, if the buttons “On” and “Off” are in the same button group, only one of them will be active (which is logical).

To create the radio button group in NetBeans do the following:

  1. Use “Button group” from the components palette and put it into Your form. It will be added as “non-visual”
  2. Button group component

  3. Add the radio buttons to the group, changing their ButtonGroup property (combobox in the Properties)
  4. RadioButton properties

To remove the radio button group, go to the inspector window and remove radio button group there.

  • Remove radio button group

Additional literature:

25 comments to NetBeans: use a radio button group

Leave a Reply

  

  

  

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>