Here you can find the source of addActionListener(ActionListener listener, AbstractButton... buttons)
public static void addActionListener(ActionListener listener, AbstractButton... buttons)
//package com.java2s; //License from project: Open Source License import java.awt.event.ActionListener; import javax.swing.AbstractButton; import javax.swing.JComboBox; public class Main { public static void addActionListener(ActionListener listener, JComboBox... components) { for (JComboBox component : components) { component.addActionListener(listener); }//from w ww .j a v a 2 s . c om } public static void addActionListener(ActionListener listener, AbstractButton... buttons) { for (AbstractButton button : buttons) { button.addActionListener(listener); } } }