< prev index next >

test/jdk/java/awt/Focus/ContainerFocusAutoTransferTest/ContainerFocusAutoTransferTest.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2008, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 24,40 **** /* @test @key headful @bug 6607170 @summary Tests for focus-auto-transfer. - @author Anton Tarasov: area=awt-focus @library ../../regtesthelpers @build Util @run main ContainerFocusAutoTransferTest */ - import java.applet.Applet; import java.awt.AWTEvent; import java.awt.Component; import java.awt.ComponentOrientation; import java.awt.DefaultKeyboardFocusManager; import java.awt.KeyboardFocusManager; --- 24,38 ----
*** 48,58 **** import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import test.java.awt.regtesthelpers.Util; ! public class ContainerFocusAutoTransferTest extends Applet { Robot robot; TestFrame frame; KeyboardFocusManager kfm; enum TestCase { REMOVAL { public String toString() { return "removal"; } }, --- 46,56 ---- import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import test.java.awt.regtesthelpers.Util; ! public class ContainerFocusAutoTransferTest { Robot robot; TestFrame frame; KeyboardFocusManager kfm; enum TestCase { REMOVAL { public String toString() { return "removal"; } },
< prev index next >