< prev index next >

test/jdk/java/awt/Choice/PopupPosTest/PopupPosTest.java

Print this page

        

@@ -20,29 +20,27 @@
  * or visit www.oracle.com if you need additional information or have any
  * questions.
  */
 
 /*
-  test
+  @test
+  @key headful
   @bug 5044150
   @summary Tests that pupup doesn't popdown if no space to display under
-  @author andrei.dmitriev area=awt.choice
   @library /test/lib
   @build jdk.test.lib.Platform
-  @run applet PopupPosTest.html
+  @run main PopupPosTest
 */
 
-import java.applet.Applet;
 import java.awt.*;
 import java.awt.event.*;
 
 import jdk.test.lib.Platform;
 
-public class PopupPosTest extends Applet
-{
-    public void start ()
-    {
+public class PopupPosTest {
+
+    public static void main(final String[] args) {
         if (Platform.isOSX()) {
             // On OS X, popup isn't under the mouse
             return;
         }
         Frame frame = new TestFrame();
< prev index next >