< prev index next >

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

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1998, 2016, 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. --- 1,7 ---- /* ! * 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,49 **** * may not be removed. */ import java.awt.*; import java.awt.event.*; - import java.applet.Applet; ! public class FlowTest extends Applet { Panel panel; public FlowTest() { setLayout(new BorderLayout()); --- 37,48 ---- * may not be removed. */ import java.awt.*; import java.awt.event.*; ! public class FlowTest extends Panel { Panel panel; public FlowTest() { setLayout(new BorderLayout());
*** 139,150 **** System.exit(0); }; } ); FlowTest flowTest = new FlowTest(); - flowTest.init(); - flowTest.start(); f.add("Center", flowTest); f.setSize(300, 300); f.show(); } --- 138,147 ----
< prev index next >