Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.awt.Component;
import java.awt.Container;

public class Main {
    public static void setEnabledForChildren(final Container container, final boolean bEnabled) {
        for (int i = 0; i < container.getComponentCount(); i++) {
            final Component child = container.getComponent(i);
            child.setEnabled(bEnabled);
        }
    }
}