public void setEnabled(boolean b) { super.setEnabled(b); for (Component c : getComponents()) { c.setEnabled(b); } }