equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1995, 2017, 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 |
39 * convenient means for allowing a user to select from a |
39 * convenient means for allowing a user to select from a |
40 * range of values. The following three vertical |
40 * range of values. The following three vertical |
41 * scroll bars could be used as slider controls to pick |
41 * scroll bars could be used as slider controls to pick |
42 * the red, green, and blue components of a color: |
42 * the red, green, and blue components of a color: |
43 * <p> |
43 * <p> |
44 * <img src="doc-files/Scrollbar-1.gif" alt="Image shows 3 vertical sliders, side-by-side." |
44 * <img src="doc-files/Scrollbar-1.gif" alt="Image shows 3 vertical sliders, |
45 * style="float:center; margin: 7px 10px;"> |
45 * side-by-side." style="margin: 7px 10px;"> |
46 * <p> |
46 * <p> |
47 * Each scroll bar in this example could be created with |
47 * Each scroll bar in this example could be created with |
48 * code similar to the following: |
48 * code similar to the following: |
49 * |
49 * |
50 * <hr><blockquote><pre> |
50 * <hr><blockquote><pre> |
57 * width of the "bubble" (also called the "thumb" or "scroll box") |
57 * width of the "bubble" (also called the "thumb" or "scroll box") |
58 * can be used to represent the amount of text that is visible. |
58 * can be used to represent the amount of text that is visible. |
59 * Here is an example of a scroll bar that represents a range: |
59 * Here is an example of a scroll bar that represents a range: |
60 * <p> |
60 * <p> |
61 * <img src="doc-files/Scrollbar-2.gif" |
61 * <img src="doc-files/Scrollbar-2.gif" |
62 * alt="Image shows horizontal slider with starting range of 0 and ending range of 300. The slider thumb is labeled 60." |
62 * alt="Image shows horizontal slider with starting range of 0 and ending range |
63 * style="float:center; margin: 7px 10px;"> |
63 * of 300. The slider thumb is labeled 60." style="margin: 7px 10px;"> |
64 * <p> |
64 * <p> |
65 * The value range represented by the bubble in this example |
65 * The value range represented by the bubble in this example |
66 * is the <em>visible amount</em>. The horizontal scroll bar |
66 * is the <em>visible amount</em>. The horizontal scroll bar |
67 * in this example could be created with code like the following: |
67 * in this example could be created with code like the following: |
68 * |
68 * |