< prev index next >
test/jdk/java/awt/Focus/AutoRequestFocusTest/AutoRequestFocusSetVisibleTest.java
Print this page
*** 24,47 ****
/*
@test
@key headful
@bug 6187066
@summary Tests the Window.autoRequestFocus property for the Window.setVisible() method.
- @author anton.tarasov: area=awt.focus
@library ../../regtesthelpers
@build Util
@run main AutoRequestFocusSetVisibleTest
*/
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 AutoRequestFocusSetVisibleTest extends Applet {
static Frame focusedFrame;
static Button focusOwner;
static Frame frame;
static Button frameButton;
static Frame frame2;
--- 24,42 ----
/*
@test
@key headful
@bug 6187066
@summary Tests the Window.autoRequestFocus property for the Window.setVisible() method.
@library ../../regtesthelpers
@build Util
@run main AutoRequestFocusSetVisibleTest
*/
import java.awt.*;
import test.java.awt.regtesthelpers.Util;
! public class AutoRequestFocusSetVisibleTest {
static Frame focusedFrame;
static Button focusOwner;
static Frame frame;
static Button frameButton;
static Frame frame2;
*** 63,76 ****
app.init();
app.start();
}
public void init() {
- // Create instructions for the user here, as well as set up
- // the environment -- set the layout manager, add buttons,
- // etc.
- this.setLayout (new BorderLayout ());
toolkitClassName = Toolkit.getDefaultToolkit().getClass().getName();
}
void recreateGUI() {
if (focusedFrame != null) {
--- 58,67 ----
< prev index next >