< prev index next >

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

Print this page

        

@@ -24,24 +24,19 @@
 /*
   @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 {
+public class AutoRequestFocusSetVisibleTest {
     static Frame focusedFrame;
     static Button focusOwner;
     static Frame frame;
     static Button frameButton;
     static Frame frame2;

@@ -63,14 +58,10 @@
         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) {
< prev index next >