BlockingDFWNonModal1Test.java revision 15235:fe58d505fffd
155682Smarkm/* 2233294Sstas * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. 3233294Sstas * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4233294Sstas * 555682Smarkm * This code is free software; you can redistribute it and/or modify it 6233294Sstas * under the terms of the GNU General Public License version 2 only, as 755682Smarkm * published by the Free Software Foundation. 8233294Sstas * 9233294Sstas * This code is distributed in the hope that it will be useful, but WITHOUT 10233294Sstas * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1155682Smarkm * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12233294Sstas * version 2 for more details (a copy is included in the LICENSE file that 13233294Sstas * accompanied this code). 1455682Smarkm * 15233294Sstas * You should have received a copy of the GNU General Public License version 16233294Sstas * 2 along with this work; if not, write to the Free Software Foundation, 17233294Sstas * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1855682Smarkm * 19233294Sstas * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20233294Sstas * or visit www.oracle.com if you need additional information or have any 21233294Sstas * questions. 22233294Sstas */ 23233294Sstas 24233294Sstas 25233294Sstas/* 26233294Sstas * @test 27233294Sstas * @key headful 28233294Sstas * @bug 8049617 29233294Sstas * @summary Check whether a non-modal Dialog created with a Frame 30233294Sstas * constructor receives focus, whether its components receive focus 31233294Sstas * and respond to key events. Check also if the other windows 32233294Sstas * receive mouse and key events. 33233294Sstas * 3455682Smarkm * @library ../helpers ../../../../lib/testlibrary/ 3555682Smarkm * @build ExtendedRobot 3655682Smarkm * @build Flag 3755682Smarkm * @build TestDialog 38233294Sstas * @build TestFrame 3955682Smarkm * @build TestWindow 4055682Smarkm * @run main BlockingDFWNonModal1Test 4155682Smarkm */ 4255682Smarkm 4355682Smarkmpublic class BlockingDFWNonModal1Test { 44233294Sstas 45233294Sstas public static void main(String[] args) throws Exception { 46233294Sstas (new BlockingDFWTest( 47233294Sstas BlockingDFWTest.Parent.FRAME, null)).doTest(); 4855682Smarkm } 4955682Smarkm} 5055682Smarkm