< prev index next >

test/jdk/java/awt/Focus/IconifiedFrameFocusChangeTest/IconifiedFrameFocusChangeTest.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,45 **** /* @test @key headful @bug 6522725 @summary Tests for proper request-focus-back on FOCUS_LOST. - @author Anton Tarasov: area=awt-focus @library ../../regtesthelpers @build Util @run main IconifiedFrameFocusChangeTest */ import java.awt.*; - import java.applet.Applet; import java.awt.event.*; import test.java.awt.regtesthelpers.Util; ! public class IconifiedFrameFocusChangeTest extends Applet { Frame testFrame = new Frame("Test Frame"); Frame otherFrame = new Frame("Other Frame"); Button testButton = new Button("test button"); Button otherButton = new Button("other button"); Robot robot; --- 24,43 ---- /* @test @key headful @bug 6522725 @summary Tests for proper request-focus-back on FOCUS_LOST. @library ../../regtesthelpers @build Util @run main IconifiedFrameFocusChangeTest */ import java.awt.*; import java.awt.event.*; import test.java.awt.regtesthelpers.Util; ! public class IconifiedFrameFocusChangeTest { Frame testFrame = new Frame("Test Frame"); Frame otherFrame = new Frame("Other Frame"); Button testButton = new Button("test button"); Button otherButton = new Button("other button"); Robot robot;
< prev index next >