private static void eachChild(Container cont, P1<Component> p1) {
		// Get the Container's array of children Components.
		Component[] children = cont.getComponents();

		// For every child repeat the above operation.
		for (int i = 0; i < children.length; i++) {
			Component component = children[i];
			p1.e(component);
			if (component instanceof Container) {
				eachChild((Container) component, p1);
			}
		}
	}