< prev index next >
test/jdk/java/awt/Focus/FocusOwnerFrameOnClick/FocusOwnerFrameOnClick.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 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.
@@ -20,28 +20,25 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
- @test FocusOwnerFrameOnClick.java %W% %E%
+ @test
@key headful
@bug 6886678
@summary Tests that clicking an owner frame switches focus from its owned window.
- @author Anton Tarasov: area=awt.focus
@library ../../regtesthelpers
@build Util
@run main FocusOwnerFrameOnClick
*/
import java.awt.*;
import java.awt.event.*;
-import java.applet.Applet;
import java.util.concurrent.atomic.AtomicBoolean;
-import java.lang.reflect.InvocationTargetException;
import test.java.awt.regtesthelpers.Util;
-public class FocusOwnerFrameOnClick extends Applet {
+public class FocusOwnerFrameOnClick {
Robot robot;
Frame frame = new Frame("Frame");
Window window = new Window(frame);
Button fButton = new Button("fButton");
Button wButton = new Button("wButton");
< prev index next >