equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
37 * may not be removed. |
37 * may not be removed. |
38 */ |
38 */ |
39 |
39 |
40 import java.awt.*; |
40 import java.awt.*; |
41 import java.awt.event.*; |
41 import java.awt.event.*; |
42 import java.applet.Applet; |
|
43 |
42 |
44 public class FlowTest extends Applet { |
43 public class FlowTest extends Panel { |
45 Panel panel; |
44 Panel panel; |
46 |
45 |
47 public FlowTest() { |
46 public FlowTest() { |
48 setLayout(new BorderLayout()); |
47 setLayout(new BorderLayout()); |
49 |
48 |
139 System.exit(0); |
138 System.exit(0); |
140 }; |
139 }; |
141 } ); |
140 } ); |
142 |
141 |
143 FlowTest flowTest = new FlowTest(); |
142 FlowTest flowTest = new FlowTest(); |
144 flowTest.init(); |
|
145 flowTest.start(); |
|
146 |
143 |
147 f.add("Center", flowTest); |
144 f.add("Center", flowTest); |
148 f.setSize(300, 300); |
145 f.setSize(300, 300); |
149 f.show(); |
146 f.show(); |
150 } |
147 } |