Java Swing ActionMap checkActions(JComponent aComponent)

Here you can find the source of checkActions(JComponent aComponent)

Description

check Actions

License

Apache License

Declaration

public static void checkActions(JComponent aComponent) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.swing.Action;
import javax.swing.ActionMap;

import javax.swing.JComponent;

public class Main {
    public static void checkActions(JComponent aComponent) {
        ActionMap am = aComponent.getActionMap();
        for (Object key : am.allKeys()) {
            Action action = am.get(key);
            if (action != null) {
                action.setEnabled(action.isEnabled());
            }//from ww w . j av a2  s  .c  o  m
        }
    }
}

Related

  1. addEnterAction(JComponent comp, Action action)
  2. addFieldsValidateAction(Action action, JComponent... components)
  3. addFieldValidateAction(JComponent field, Action action)
  4. attachAccelerator(Action action, JComponent component)
  5. bindAction(JComponent aComponent, String aCommand, Action anAction)
  6. cloneActionMap(ActionMap original)
  7. dumpActionMap(JComponent comp)
  8. fillInputMap(ActionMap am)
  9. installActions(JComponent comp, Action actions[], int condition)