< prev index next >

test/jdk/java/awt/Focus/AutoRequestFocusTest/AutoRequestFocusToFrontTest.java

Print this page

        

*** 24,48 **** /* @test @key headful @bug 6187066 @summary Tests the Window.autoRequestFocus property for the Window.toFront() method. - @author anton.tarasov: area=awt.focus @library /java/awt/patchlib ../../regtesthelpers @build java.desktop/java.awt.Helper @build Util @run main AutoRequestFocusToFrontTest */ 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 AutoRequestFocusToFrontTest extends Applet { static boolean haveDelays; static Frame auxFrame; static Frame frame; static Button frameButton; --- 24,43 ---- /* @test @key headful @bug 6187066 @summary Tests the Window.autoRequestFocus property for the Window.toFront() method. @library /java/awt/patchlib ../../regtesthelpers @build java.desktop/java.awt.Helper @build Util @run main AutoRequestFocusToFrontTest */ import java.awt.*; import test.java.awt.regtesthelpers.Util; ! public class AutoRequestFocusToFrontTest { static boolean haveDelays; static Frame auxFrame; static Frame frame; static Button frameButton;
*** 74,87 **** 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(); } static void recreateGUI() { if (auxFrame != null) { --- 69,78 ----
< prev index next >