ToBackTKModal6Test.java revision 15235:fe58d505fffd
117683Spst/* 239291Sfenner * Copyright (c) 2007, 2014, Oracle and/or its affiliates. All rights reserved. 317683Spst * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 417683Spst * 517683Spst * This code is free software; you can redistribute it and/or modify it 617683Spst * under the terms of the GNU General Public License version 2 only, as 717683Spst * published by the Free Software Foundation. 817683Spst * 917683Spst * This code is distributed in the hope that it will be useful, but WITHOUT 1017683Spst * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1117683Spst * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1217683Spst * version 2 for more details (a copy is included in the LICENSE file that 1317683Spst * accompanied this code). 1417683Spst * 1517683Spst * You should have received a copy of the GNU General Public License version 1617683Spst * 2 along with this work; if not, write to the Free Software Foundation, 1717683Spst * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1817683Spst * 1917683Spst * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2026175Sfenner * or visit www.oracle.com if you need additional information or have any 2117683Spst * questions. 2217683Spst */ 2317683Spst 2417683Spstimport java.awt.Dialog; 2517683Spst 2617683Spst/* 2717683Spst * @test 2817683Spst * @key headful 2917683Spst * @bug 8054143 3017683Spst * @summary Check whether a toolkit modal dialog having a visible Dialog 3126175Sfenner * constructor still stays on top of the blocked windows even 32127664Sbms * after calling toBack for the dialog. 33214518Srpaulo * 3426175Sfenner * @library ../helpers ../../../../lib/testlibrary/ 3526175Sfenner * @build ExtendedRobot 3675107Sfenner * @build Flag 3775107Sfenner * @build TestDialog 3875107Sfenner * @build TestFrame 3975107Sfenner * @run main ToBackTKModal6Test 40214518Srpaulo */ 41214518Srpaulo 42214518Srpaulopublic class ToBackTKModal6Test { 43214518Srpaulo 44214518Srpaulo public static void main(String[] args) throws Exception { 45214518Srpaulo (new ToBackDDFTest(Dialog.ModalityType.TOOLKIT_MODAL)).doTest(); 46214518Srpaulo } 47214518Srpaulo} 48214518Srpaulo