< prev index next >

test/jdk/java/awt/ComponentOrientation/FlowTest.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 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.

@@ -37,13 +37,12 @@
  * may not be removed.
  */
 
 import java.awt.*;
 import java.awt.event.*;
-import java.applet.Applet;
 
-public class FlowTest extends Applet {
+public class FlowTest extends Panel {
     Panel       panel;
 
     public FlowTest() {
         setLayout(new BorderLayout());
 

@@ -139,12 +138,10 @@
                 System.exit(0);
             };
         } );
 
         FlowTest flowTest = new FlowTest();
-        flowTest.init();
-        flowTest.start();
 
         f.add("Center", flowTest);
         f.setSize(300, 300);
         f.show();
     }
< prev index next >