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