svoid waitWhileShowing(Component c) { while (isComponentShowing(c)) sleep(50); }