equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1995, 2019, 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. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
90 * and vertically to fill any space left over. |
90 * and vertically to fill any space left over. |
91 * <p> |
91 * <p> |
92 * Here is an example of five buttons in an applet laid out using |
92 * Here is an example of five buttons in an applet laid out using |
93 * the {@code BorderLayout} layout manager: |
93 * the {@code BorderLayout} layout manager: |
94 * <p> |
94 * <p> |
95 * <img src="doc-files/BorderLayout-1.gif" |
95 * <img src="doc-files/BorderLayout-1.gif" alt="Diagram of an applet |
96 * alt="Diagram of an applet demonstrating BorderLayout. |
96 * demonstrating BorderLayout. Each section of the BorderLayout contains a |
97 * Each section of the BorderLayout contains a Button corresponding to its position in the layout, one of: |
97 * Button corresponding to its position in the layout, one of: North, West, |
98 * North, West, Center, East, or South." |
98 * Center, East, or South." style="margin: 7px 10px;"> |
99 * style="float:center; margin: 7px 10px;"> |
|
100 * <p> |
99 * <p> |
101 * The code for this applet is as follows: |
100 * The code for this applet is as follows: |
102 * |
101 * |
103 * <hr><blockquote><pre> |
102 * <hr><blockquote><pre> |
104 * import java.awt.*; |
103 * import java.awt.*; |