Example usage for javax.swing JPanel getComponents

List of usage examples for javax.swing JPanel getComponents

Introduction

In this page you can find the example usage for javax.swing JPanel getComponents.

Prototype

public Component[] getComponents() 

Source Link

Document

Gets all the components in this container.

Usage

From source file:uiuc.dm.miningTools.ui.ParametersSelectionFrame.java

private static void enablePanel(final JPanel panel) {
    Component[] com = panel.getComponents();
    for (int a = 0; a < com.length; a++) {
        com[a].setEnabled(true);/*from   www. ja  va2s.  c  o m*/
    }
}