121 * up or down by a line.
122 * This value should be a non negative integer.
123 *
124 * @serial
125 * @see #getUnitIncrement
126 * @see #setUnitIncrement
127 */
128 private int unitIncrement = 1;
129
130 /**
131 * The amount by which the scrollbar value will change when going
132 * up or down by a page.
133 * This value should be a non negative integer.
134 *
135 * @serial
136 * @see #getBlockIncrement
137 * @see #setBlockIncrement
138 */
139 private int blockIncrement = 1;
140
141 private AdjustmentListener adjustmentListener;
142
143 /**
144 * Error message for {@code AWTError} reported when one of
145 * the public but unsupported methods is called.
146 */
147 private static final String SCROLLPANE_ONLY =
148 "Can be set by scrollpane only";
149
150
151 /**
152 * Initialize JNI field and method ids.
153 */
154 private static native void initIDs();
155
156 static {
157 Toolkit.loadLibraries();
158 if (!GraphicsEnvironment.isHeadless()) {
159 initIDs();
160 }
|
121 * up or down by a line.
122 * This value should be a non negative integer.
123 *
124 * @serial
125 * @see #getUnitIncrement
126 * @see #setUnitIncrement
127 */
128 private int unitIncrement = 1;
129
130 /**
131 * The amount by which the scrollbar value will change when going
132 * up or down by a page.
133 * This value should be a non negative integer.
134 *
135 * @serial
136 * @see #getBlockIncrement
137 * @see #setBlockIncrement
138 */
139 private int blockIncrement = 1;
140
141 @SuppressWarnings("serial") // Not statically typed as Serializable
142 private AdjustmentListener adjustmentListener;
143
144 /**
145 * Error message for {@code AWTError} reported when one of
146 * the public but unsupported methods is called.
147 */
148 private static final String SCROLLPANE_ONLY =
149 "Can be set by scrollpane only";
150
151
152 /**
153 * Initialize JNI field and method ids.
154 */
155 private static native void initIDs();
156
157 static {
158 Toolkit.loadLibraries();
159 if (!GraphicsEnvironment.isHeadless()) {
160 initIDs();
161 }
|