Java JComponent Properties doDisable(JComponent component)

Here you can find the source of doDisable(JComponent component)

Description

do Disable

License

Open Source License

Declaration

public static void doDisable(JComponent component) 

Method Source Code

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

import javax.swing.JComponent;

public class Main {
    public static void doDisable(JComponent component) {
        if (component.isEnabled())
            component.setEnabled(false);
    }/*  w  ww .  j  a  va  2 s  .c  o  m*/

    public static void doDisable(JComponent... components) {
        for (JComponent comp : components)
            if (comp.isEnabled())
                comp.setEnabled(false);
    }
}

Related

  1. buildComponentPanel(JComponent component, int hgap, int vgap, boolean isOpaque)
  2. buildComponentPanelRight(JComponent component, int hgap, int vgap, boolean isOpaque)
  3. disableAll(JComponent component)
  4. disposeParentWindow(JComponent component)
  5. getProperties(JComponent component)
  6. getProperties(JComponent component)
  7. getProperties(JComponent component)
  8. getVisibleBoundsOnScreen(JComponent component)