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 BorderTest extends Applet { |
43 public class BorderTest extends Panel { |
45 Panel panel1; |
44 Panel panel1; |
46 Panel panel2; |
45 Panel panel2; |
47 |
46 |
48 public BorderTest() { |
47 public BorderTest() { |
49 setLayout(new GridLayout(0,2)); |
48 setLayout(new GridLayout(0,2)); |
106 System.exit(0); |
105 System.exit(0); |
107 }; |
106 }; |
108 } ); |
107 } ); |
109 |
108 |
110 BorderTest BorderTest = new BorderTest(); |
109 BorderTest BorderTest = new BorderTest(); |
111 BorderTest.init(); |
|
112 BorderTest.start(); |
|
113 |
110 |
114 f.add("Center", BorderTest); |
111 f.add("Center", BorderTest); |
115 f.setSize(450, 300); |
112 f.setSize(450, 300); |
116 f.show(); |
113 f.show(); |
117 } |
114 } |