where.translate(W/8, H/8);
Color sample = robot.getPixelColor(where.x, where.y);
long start = System.currentTimeMillis();
while (!sample.equals(FOREGROUND)) {
SwingUtilities.invokeAndWait(new Runnable() { public void run() {
front.toFront();
}});
Thread.sleep(10);
if (System.currentTimeMillis() - start > 5000)
fail("Timed out waiting for shaped window to appear, "
+ "expected foreground color (sample="