Lines Matching defs:owner
27 @summary Tests that Window having non-focusable owner can't be a focus owner.
62 frame.setName("Frame-owner");
65 dialog.setName("Dialog-owner");
93 void test1(Window owner, Window child) {
94 System.out.println("* * * STAGE 1 * * *\nWindow owner: " + owner);
96 owner.setFocusableWindowState(false);
97 owner.setVisible(true);
109 owner.dispose();
112 void test2(Window owner, Window child1, Window child2) {
113 System.out.println("* * * STAGE 2 * * *\nWindow nowner: " + owner);
115 owner.setFocusableWindowState(false);
116 owner.setVisible(true);
132 owner.dispose();
135 void test3(Window owner, Window child1, Window child2) {
136 System.out.println("* * * STAGE 3 * * *\nWidow owner: " + owner);
138 owner.setFocusableWindowState(true);
139 owner.setVisible(true);
151 System.err.println("focus owner: " + KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner());
157 owner.dispose();