sbool isGrandChildOf(Component a, Component b) swing { if (a == b) true; while ((a = getParent(a)) != null) if (a == b) true; false; }