void (JComponent c) { if (myDisabledComponents.contains(c)) { c.setEnabled(true); } for (Component component : c.getComponents()) { if (component instanceof JComponent) { enable((JComponent)component); } } }