5170N/A/*
5170N/A * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
5170N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5170N/A *
5170N/A * This code is free software; you can redistribute it and/or modify it
5170N/A * under the terms of the GNU General Public License version 2 only, as
5170N/A * published by the Free Software Foundation.
5170N/A *
5170N/A * This code is distributed in the hope that it will be useful, but WITHOUT
5170N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5170N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5170N/A * version 2 for more details (a copy is included in the LICENSE file that
5170N/A * accompanied this code).
5170N/A *
5170N/A * You should have received a copy of the GNU General Public License version
5170N/A * 2 along with this work; if not, write to the Free Software Foundation,
5170N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5170N/A *
5170N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5170N/A * or visit www.oracle.com if you need additional information or have any
5170N/A * questions.
5170N/A */
5170N/A
5170N/A/*
5170N/A * @test
5414N/A * @bug 7024749 7184326
5170N/A * @summary JDK7 b131---a crash in: Java_sun_awt_windows_ThemeReader_isGetThemeTransitionDurationDefined+0x75
5414N/A * @library ../../regtesthelpers
5170N/A * @build Util
5170N/A * @author Oleg Pekhovskiy: area=awt.toplevel
5170N/A @run main bug7024749
5170N/A */
5170N/A
5170N/Aimport java.awt.*;
5170N/Aimport test.java.awt.regtesthelpers.Util;
5170N/A
5170N/Apublic class bug7024749 {
5170N/A public static void main(String[] args) {
5170N/A final Frame f = new Frame("F");
5170N/A f.setBounds(0,0,200,200);
5170N/A f.setEnabled(false); // <- disable the top-level
5170N/A f.setVisible(true);
5170N/A
5170N/A Window w = new Window(f);
5170N/A w.setBounds(300,300,300,300);
5170N/A w.add(new TextField(20));
5170N/A w.setVisible(true);
5170N/A
5170N/A Robot robot = Util.createRobot();
5170N/A robot.setAutoDelay(1000);
5170N/A Util.waitForIdle(robot);
5170N/A robot.delay(1000);
5170N/A Util.clickOnTitle(f, robot);
5170N/A Util.waitForIdle(robot);
5170N/A
5170N/A f.dispose();
5170N/A System.out.println("Test passed!");
5170N/A }
5170N/A}