Here you can find the source of isSelected(AbstractButton... buttons)
public static boolean isSelected(AbstractButton... buttons)
//package com.java2s; //License from project: Open Source License import javax.swing.AbstractButton; public class Main { public static boolean isSelected(AbstractButton... buttons) { for (AbstractButton button : buttons) { if (button.isSelected()) { return true; }// w ww.jav a2s. c om } return false; } }