test/jdk/java/awt/Focus/ContainerFocusAutoTransferTest/ContainerFocusAutoTransferTest.java
changeset 54231 e4813eded7cb
parent 47216 71c04702a3d5
equal deleted inserted replaced
54230:d9d9655bb077 54231:e4813eded7cb
     1 /*
     1 /*
     2  * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2008, 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       6607170
    27   @bug       6607170
    28   @summary   Tests for focus-auto-transfer.
    28   @summary   Tests for focus-auto-transfer.
    29   @author    Anton Tarasov: area=awt-focus
       
    30   @library   ../../regtesthelpers
    29   @library   ../../regtesthelpers
    31   @build     Util
    30   @build     Util
    32   @run       main ContainerFocusAutoTransferTest
    31   @run       main ContainerFocusAutoTransferTest
    33 */
    32 */
    34 
    33 
    35 import java.applet.Applet;
       
    36 import java.awt.AWTEvent;
    34 import java.awt.AWTEvent;
    37 import java.awt.Component;
    35 import java.awt.Component;
    38 import java.awt.ComponentOrientation;
    36 import java.awt.ComponentOrientation;
    39 import java.awt.DefaultKeyboardFocusManager;
    37 import java.awt.DefaultKeyboardFocusManager;
    40 import java.awt.KeyboardFocusManager;
    38 import java.awt.KeyboardFocusManager;
    48 import javax.swing.JButton;
    46 import javax.swing.JButton;
    49 import javax.swing.JFrame;
    47 import javax.swing.JFrame;
    50 import javax.swing.JPanel;
    48 import javax.swing.JPanel;
    51 import test.java.awt.regtesthelpers.Util;
    49 import test.java.awt.regtesthelpers.Util;
    52 
    50 
    53 public class ContainerFocusAutoTransferTest extends Applet {
    51 public class ContainerFocusAutoTransferTest {
    54     Robot robot;
    52     Robot robot;
    55     TestFrame frame;
    53     TestFrame frame;
    56     KeyboardFocusManager kfm;
    54     KeyboardFocusManager kfm;
    57     enum TestCase {
    55     enum TestCase {
    58         REMOVAL { public String toString() { return "removal"; } },
    56         REMOVAL { public String toString() { return "removal"; } },