Example usage for javax.swing JDialog getComponents

List of usage examples for javax.swing JDialog getComponents

Introduction

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

Prototype

public Component[] getComponents() 

Source Link

Document

Gets all the components in this container.

Usage

From source file:op.tools.SYSTools.java

/**
 * luft rekursiv durch alle Kinder eines JFrames und entfernt evtl. vorhandene Listener.
 *///from  w ww . j  av  a2 s  .  c  o m
public static void unregisterListeners(JDialog container) {
    if (container == null) {
        return;
    }
    if (container.getComponentCount() > 0) {
        Component[] c = container.getComponents();
        for (int i = 0; i < c.length; i++) {
            if (c[i] instanceof JComponent) {
                unregisterListeners((JComponent) c[i]);
            }
        }
    }
}

From source file:org.mhisoft.wallet.view.MyVFSJFileChooser.java

@Override
protected JDialog createDialog(Component parent) throws HeadlessException {
    JDialog d = super.createDialog(parent);

    ViewHelper.setFileChooserFont(d.getComponents(), WalletSettings.getInstance().getFontSize());

    return d;/*from w  ww.  j ava2s . c om*/

}