equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1995, 2018, 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 |
59 * <p> |
59 * <p> |
60 * where {@code cnt} is a container, produces the following |
60 * where {@code cnt} is a container, produces the following |
61 * scrolling list: |
61 * scrolling list: |
62 * <p> |
62 * <p> |
63 * <img src="doc-files/List-1.gif" |
63 * <img src="doc-files/List-1.gif" |
64 * alt="Shows a list containing: Venus, Earth, JavaSoft, and Mars. Javasoft is selected." style="float:center; margin: 7px 10px;"> |
64 * alt="Shows a list containing: Venus, Earth, JavaSoft, and Mars. Javasoft is |
|
65 * selected." style="margin: 7px 10px;"> |
65 * <p> |
66 * <p> |
66 * If the List allows multiple selections, then clicking on |
67 * If the List allows multiple selections, then clicking on |
67 * an item that is already selected deselects it. In the preceding |
68 * an item that is already selected deselects it. In the preceding |
68 * example, only one item from the scrolling list can be selected |
69 * example, only one item from the scrolling list can be selected |
69 * at a time, since the second argument when creating the new scrolling |
70 * at a time, since the second argument when creating the new scrolling |