Lines Matching defs:focused
27 @summary A Window should be initially focused on its showing (XAWT bug).
43 AtomicBoolean focused = new AtomicBoolean(false);
71 synchronized (focused) {
72 focused.set(true);
73 focused.notifyAll();
80 // Test 1. Show the window, check that it become focused.
85 if (!Util.waitForCondition(focused, 2000L)) {
86 throw new TestFailedException("the window didn't get focused on its showing!");
89 // Test 2. Show unfocusable window, check that it doesn't become focused.
95 focused.set(false);
100 if (Util.waitForCondition(focused, 2000L)) {
101 throw new TestFailedException("the unfocusable window got focused on its showing!");