Java JRadioButton regroupeBoutons(JRadioButton[] tab)

Here you can find the source of regroupeBoutons(JRadioButton[] tab)

Description

regroupe Boutons

License

Mozilla Public License

Declaration

public static ButtonGroup regroupeBoutons(JRadioButton[] tab) 

Method Source Code

//package com.java2s;
//License from project: Mozilla Public License 

import javax.swing.*;

public class Main {

    public static ButtonGroup regroupeBoutons(JRadioButton[] tab) {
        ButtonGroup grpBtn = new ButtonGroup();
        for (JRadioButton btn : tab)
            grpBtn.add(btn);// w w  w . j  a va  2 s  .c o m
        return grpBtn;
    }
}

Related

  1. addSelectedPropertyChangeEventForJRadioButton(final JRadioButton button)
  2. groupRadioButtons(JRadioButton[] buttonArray)
  3. isRadioButtonSelected(JRadioButton radioButton)