< prev index next >
test/jdk/java/awt/Focus/NonFocusableWindowTest/NonfocusableOwnerTest.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,47 ****
/*
@test
@key headful
@bug 6182359
@summary Tests that Window having non-focusable owner can't be a focus owner.
- @author Anton.Tarasov: area=awt.focus
@library ../../regtesthelpers
@build Util
@run main NonfocusableOwnerTest
*/
import java.awt.*;
import java.awt.event.*;
- import java.applet.Applet;
- import java.lang.reflect.*;
- import java.io.*;
import test.java.awt.regtesthelpers.Util;
! public class NonfocusableOwnerTest extends Applet {
Robot robot = Util.createRobot();
Frame frame;
Dialog dialog;
Window window1;
Window window2;
--- 24,43 ----
/*
@test
@key headful
@bug 6182359
@summary Tests that Window having non-focusable owner can't be a focus owner.
@library ../../regtesthelpers
@build Util
@run main NonfocusableOwnerTest
*/
import java.awt.*;
import java.awt.event.*;
import test.java.awt.regtesthelpers.Util;
! public class NonfocusableOwnerTest {
Robot robot = Util.createRobot();
Frame frame;
Dialog dialog;
Window window1;
Window window2;
< prev index next >