test/jdk/java/awt/Focus/FocusEmbeddedFrameTest/FocusEmbeddedFrameTest.java
changeset 54231 e4813eded7cb
parent 47216 71c04702a3d5
equal deleted inserted replaced
54230:d9d9655bb077 54231:e4813eded7cb
     1 /*
     1 /*
     2  * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    24 /**
    24 /**
    25  * @test
    25  * @test
    26  * @key       headful
    26  * @key       headful
    27  * @bug       6516675
    27  * @bug       6516675
    28  * @summary   Tests that EmbeddedFrame can be focused.
    28  * @summary   Tests that EmbeddedFrame can be focused.
    29  * @author    anton.tarasov: area=awt-focus
       
    30  * @requires (os.family == "windows")
    29  * @requires (os.family == "windows")
    31  * @modules   java.desktop/java.awt.peer
    30  * @modules   java.desktop/java.awt.peer
    32  *            java.desktop/sun.awt
    31  *            java.desktop/sun.awt
    33  *            java.desktop/sun.awt.windows
    32  *            java.desktop/sun.awt.windows
    34  * @library /java/awt/patchlib    ../../regtesthelpers
    33  * @library /java/awt/patchlib    ../../regtesthelpers
    37  * @run       main FocusEmbeddedFrameTest
    36  * @run       main FocusEmbeddedFrameTest
    38  */
    37  */
    39 
    38 
    40 import java.awt.*;
    39 import java.awt.*;
    41 import java.awt.event.*;
    40 import java.awt.event.*;
    42 import java.applet.Applet;
       
    43 import java.util.concurrent.atomic.AtomicBoolean;
       
    44 import java.lang.reflect.InvocationTargetException;
       
    45 import test.java.awt.regtesthelpers.Util;
    41 import test.java.awt.regtesthelpers.Util;
    46 import test.java.awt.regtesthelpers.UtilInternal;
    42 import test.java.awt.regtesthelpers.UtilInternal;
    47 
    43 
    48 public class FocusEmbeddedFrameTest extends Applet {
    44 public class FocusEmbeddedFrameTest {
    49     static Frame embedder = new Frame("Embedder");
    45     static Frame embedder = new Frame("Embedder");
    50     static Frame ef = null;
    46     static Frame ef = null;
    51     static volatile boolean passed;
    47     static volatile boolean passed;
    52 
    48 
    53     Robot robot;
    49     Robot robot;