static int numberOfChildren(Container c) { ret c == null ? 0 : c.getComponentCount(); }