Java JButton Settings groupButtons(AbstractButton... buttons)

Here you can find the source of groupButtons(AbstractButton... buttons)

Description

group Buttons

License

LGPL

Declaration

public static ButtonGroup groupButtons(AbstractButton... buttons) 

Method Source Code


//package com.java2s;
//License from project: LGPL 

import javax.swing.*;

public class Main {
    public static ButtonGroup groupButtons(AbstractButton... buttons) {
        ButtonGroup group = new ButtonGroup();
        for (AbstractButton button : buttons) {
            group.add(button);/* w w w  .  ja v a  2s .c  om*/
        }
        return group;
    }
}

Related

  1. getSelectedButtonText(ButtonGroup buttonGroup)
  2. getSoftToggleButton(String string)
  3. getTextXOffset(AbstractButton c)
  4. getTogglableIconButton(ImageIcon icon)
  5. getWindowFileChooserOKButton(JFileChooser chooser)
  6. groupButtons(final Container container, final boolean recursive)
  7. growFont(JComponent button)
  8. hasIcon(AbstractButton button)
  9. hasText(AbstractButton button)