Here you can find the source of setEnable(boolean b, JButton... bs)
public static void setEnable(boolean b, JButton... bs)
//package com.java2s; //License from project: Apache License import javax.swing.JButton; public class Main { public static void setEnable(boolean b, JButton... bs) { for (JButton button : bs) { button.setEnabled(b);/*from w w w . j a va 2 s.c o m*/ } } }