Java tutorial
//package com.java2s; //License from project: Open Source License import java.awt.Component; public class Main { public static void enable(Component... components) { for (Component component : components) { component.setEnabled(true); } } }