<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.awt.Scrollbar
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.html">This Package</a>  <a href="java.awt.ScrollPane.html#_top_">Previous</a>  <a href="java.awt.SystemColor.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.awt.Scrollbar
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.awt.Component.html#_top_">java.awt.Component</a>
           |
           +----java.awt.Scrollbar
</pre>
<hr>
<dl>
  <dt> public class <b>Scrollbar</b>
  <dt> extends <a href="java.awt.Component.html#_top_">Component</a>
  <dt> implements <a href="java.awt.Adjustable.html#_top_">Adjustable</a>
</dl>
The <code>Scrollbar</code> class embodies a scroll bar, a 
 familiar user-interface object. A scroll bar provides a 
 convenient means for allowing a user to select from a 
 range of values. The following three vertical
 scroll bars could be used as slider controls to pick 
 the red, green, and blue components of a color:
 <p>
 <img src="images-awt/Scrollbar-1.gif"
 ALIGN=center HSPACE=10 VSPACE=7> 
 <p>
 Each scroll bar in this example could be created with 
 code similar to the following: 
 <p>
 <hr><blockquote><pre>
 redSlider=new Scrollbar(Scrollbar.VERTICAL, 0, 1, 0, 255);
 add(redSlider);
 </pre></blockquote><hr>
 <p>
 Alternatively, a scroll bar can represent a range of values. For 
 example, if a scroll bar is used for scrolling through text, the 
 width of the "bubble" or "thumb" can represent the amount of text 
 that is visible. Here is an example of a scroll bar that 
 represents a range:
 <p>
 <img src="images-awt/Scrollbar-2.gif" 
 ALIGN=center HSPACE=10 VSPACE=7> 
 <p>
 The value range represented by the bubble is the <em>visible</em> 
 range of the scroll bar. The horizontal scroll bar in this 
 example could be created with code like the following: 
 <p>
 <hr><blockquote><pre>
 ranger = new Scrollbar(Scrollbar.HORIZONTAL, 0, 64, 0, 255);
 add(ranger);
 </pre></blockquote><hr>
 <p>
 Note that the maximum value above, 255, is the maximum value for 
 the scroll bar's bubble. The actual width of the 
 scroll bar's track is 255&nbsp;+&nbsp;64. When the scroll bar
 is set to its maximum value, the left side of the bubble
 is at 255, and the right side is at 255&nbsp;+&nbsp;64.
 <p>
 Normally, the user changes the value of the scroll bar by 
 making a gesture with the mouse. For example, the user can
 drag the scroll bar's bubble up and down, or click in the 
 scroll bar's unit increment or block increment areas. Keyboard
 gestures can also be mapped to the scroll bar. By convention,
 the <b>Page&nbsp;Up</b> and <b>Page&nbsp;Down</b> 
 keys are equivalent to clicking in the scroll bar's block
 increment and block decrement areas.
 <p>
 When the user changes the value of the scroll bar, the scroll bar
 receives an instance of <code>AdjustmentEvent</code>. 
 The scroll bar processes this event, passing it along to 
 any registered listeners. 
 <p>
 Any object that wishes to be notified of changes to the 
 scroll bar's value should implement 
 <code>AdjustmentListener</code>, an interface defined in
 the package <code>java.awt.event</code>. 
 Listeners can be added and removed dynamically by calling 
 the methods <code>addAdjustmentListener</code> and
 <code>removeAdjustmentListener</code>.
 <p>
 The <code>AdjustmentEvent</code> class defines five types 
 of adjustment event, listed here: 
 <p>
 <ul>
 <li><code>AdjustmentEvent.TRACK</code> is sent out when the 
 user drags the scroll bar's bubble.
 <li><code>AdjustmentEvent.UNIT_INCREMENT</code> is sent out
 when the user clicks in the left arrow of a horizontal scroll 
 bar, or the top arrow of a vertical scroll bar, or makes the 
 equivalent gesture from the keyboard.
 <li><code>AdjustmentEvent.UNIT_DECREMENT</code> is sent out
 when the user clicks in the right arrow of a horizontal scroll 
 bar, or the bottom arrow of a vertical scroll bar, or makes the 
 equivalent gesture from the keyboard.
 <li><code>AdjustmentEvent.BLOCK_INCREMENT</code> is sent out
 when the user clicks in the track, to the left of the bubble
 on a horizontal scroll bar, or above the bubble on a vertical
 scroll bar. By convention, the <b>Page&nbsp;Up</b> 
 key is equivalent, if the user is using a keyboard that 
 defines a <b>Page&nbsp;Up</b> key.
 <li><code>AdjustmentEvent.BLOCK_DECREMENT</code> is sent out
 when the user clicks in the track, to the right of the bubble
 on a horizontal scroll bar, or below the bubble on a vertical
 scroll bar. By convention, the <b>Page&nbsp;Down</b> 
 key is equivalent, if the user is using a keyboard that 
 defines a <b>Page&nbsp;Down</b> key.
 </ul>
 <p>
 The JDK&nbsp;1.0 event system is supported for backwards
 compatibility, but its use with newer versions of JDK is 
 discouraged. The fives types of adjustment event introduced
 with JDK&nbsp;1.1 correspond to the five event types 
 that are associated with scroll bars in previous JDK versions.
 The following list gives the adjustment event type, 
 and the corresponding JDK&nbsp;1.0 event type it replaces.
 <p>
 <ul>
 <li><code>AdjustmentEvent.TRACK</code> replaces 
 <code>Event.SCROLL_ABSOLUTE</code>
 <li><code>AdjustmentEvent.UNIT_INCREMENT</code> replaces 
 <code>Event.SCROLL_LINE_UP</code>
 <li><code>AdjustmentEvent.UNIT_DECREMENT</code> replaces 
 <code>Event.SCROLL_LINE_DOWN</code>
 <li><code>AdjustmentEvent.BLOCK_INCREMENT</code> replaces 
 <code>Event.SCROLL_PAGE_UP</code>
 <li><code>AdjustmentEvent.BLOCK_DECREMENT</code> replaces 
 <code>Event.SCROLL_PAGE_DOWN</code>
 </ul>
 <p>
<p>
<dl>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.event.AdjustmentEvent.html#_top_">AdjustmentEvent</a>, <a href="java.awt.event.AdjustmentListener.html#_top_">AdjustmentListener</a>
</dl>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#HORIZONTAL"><b>HORIZONTAL</b></a>
  <dd>  A constant that indicates a horizontal scroll bar.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#VERTICAL"><b>VERTICAL</b></a>
  <dd>  A constant that indicates a vertical scroll bar.
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Scrollbar()"><b>Scrollbar</b></a>()
  <dd>  Constructs a new vertical scroll bar.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Scrollbar(int)"><b>Scrollbar</b></a>(int)
  <dd>  Constructs a new scroll bar with the specified orientation.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Scrollbar(int, int, int, int, int)"><b>Scrollbar</b></a>(int, int, int, int, int)
  <dd>  Constructs a new scroll bar with the specified orientation, 
 initial value, page size, and minimum and maximum values.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#addAdjustmentListener(java.awt.event.AdjustmentListener)"><b>addAdjustmentListener</b></a>(AdjustmentListener)
  <dd>  Adds the specified adjustment listener to receive instances of 
 <code>AdjustmentEvent</code> from this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#addNotify()"><b>addNotify</b></a>()
  <dd>  Creates the Scrollbar's peer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getBlockIncrement()"><b>getBlockIncrement</b></a>()
  <dd>  Gets the block increment of this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLineIncrement()"><b>getLineIncrement</b></a>()
  <dd>  
<b>Deprecated.</b>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getMaximum()"><b>getMaximum</b></a>()
  <dd>  Gets the maximum value of this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getMinimum()"><b>getMinimum</b></a>()
  <dd>  Gets the minimum value of this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getOrientation()"><b>getOrientation</b></a>()
  <dd>  Determines the orientation of this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getPageIncrement()"><b>getPageIncrement</b></a>()
  <dd>  
<b>Deprecated.</b>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getUnitIncrement()"><b>getUnitIncrement</b></a>()
  <dd>  Gets the unit increment for this scrollbar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getValue()"><b>getValue</b></a>()
  <dd>  Gets the current value of this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getVisible()"><b>getVisible</b></a>()
  <dd>  
<b>Deprecated.</b>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getVisibleAmount()"><b>getVisibleAmount</b></a>()
  <dd>  Gets the visible amount of this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#paramString()"><b>paramString</b></a>()
  <dd>  Returns the parameter string representing the state of 
 this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#processAdjustmentEvent(java.awt.event.AdjustmentEvent)"><b>processAdjustmentEvent</b></a>(AdjustmentEvent)
  <dd> 
 Processes adjustment events occurring on this 
 scrollbar by dispatching them to any registered 
 <code>AdjustmentListener</code> objects.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#processEvent(java.awt.AWTEvent)"><b>processEvent</b></a>(AWTEvent)
  <dd>  Processes events on this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#removeAdjustmentListener(java.awt.event.AdjustmentListener)"><b>removeAdjustmentListener</b></a>(AdjustmentListener)
  <dd>  Removes the specified adjustment listener so that it no longer 
 receives instances of <code>AdjustmentEvent</code> from this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setBlockIncrement(int)"><b>setBlockIncrement</b></a>(int)
  <dd>  Sets the block increment for this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setLineIncrement(int)"><b>setLineIncrement</b></a>(int)
  <dd>  
<b>Deprecated.</b>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setMaximum(int)"><b>setMaximum</b></a>(int)
  <dd>  Sets the maximum value of this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setMinimum(int)"><b>setMinimum</b></a>(int)
  <dd>  Sets the minimum value of this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setOrientation(int)"><b>setOrientation</b></a>(int)
  <dd>  Sets the orientation for this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setPageIncrement(int)"><b>setPageIncrement</b></a>(int)
  <dd>  
<b>Deprecated.</b>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setUnitIncrement(int)"><b>setUnitIncrement</b></a>(int)
  <dd>  Sets the unit increment for this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setValue(int)"><b>setValue</b></a>(int)
  <dd>  Sets the value of this scroll bar to the specified value.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setValues(int, int, int, int)"><b>setValues</b></a>(int, int, int, int)
  <dd>  Sets the values of four properties for this scroll bar.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setVisibleAmount(int)"><b>setVisibleAmount</b></a>(int)
  <dd>  Sets the visible amount of this scroll bar.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="HORIZONTAL"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>HORIZONTAL</b>
<pre>
 public static final int HORIZONTAL
</pre>
<dl>
  <dd> A constant that indicates a horizontal scroll bar.<p>
</dl>
<a name="VERTICAL"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>VERTICAL</b>
<pre>
 public static final int VERTICAL
</pre>
<dl>
  <dd> A constant that indicates a vertical scroll bar.<p>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Scrollbar"></a>
<a name="Scrollbar()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Scrollbar</b>
<pre>
 public Scrollbar()
</pre>
<dl>
  <dd> Constructs a new vertical scroll bar.
<p>
</dl>
<a name="Scrollbar(int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Scrollbar</b>
<pre>
 public Scrollbar(int orientation)
</pre>
<dl>
  <dd> Constructs a new scroll bar with the specified orientation.
 <p>
 The <code>orientation</code> argument must take one of the two 
 values <code>Scrollbar.HORIZONTAL</code>, 
 or <code>Scrollbar.VERTICAL</code>, 
 indicating a horizontal or vertical scroll bar, respectively.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> orientation - indicates the orientation of the scroll bar.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> when an illegal value for
                    the <code>orientation</code> argument is supplied.
  </dl></dd>
</dl>
<a name="Scrollbar(int, int, int, int, int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Scrollbar</b>
<pre>
 public Scrollbar(int orientation,
                  int value,
                  int visible,
                  int minimum,
                  int maximum)
</pre>
<dl>
  <dd> Constructs a new scroll bar with the specified orientation, 
 initial value, page size, and minimum and maximum values. 
 <p>
 The <code>orientation</code> argument must take one of the two 
 values <code>Scrollbar.HORIZONTAL</code>, 
 or <code>Scrollbar.VERTICAL</code>, 
 indicating a horizontal or vertical scroll bar, respectively. 
 <p>
 If the specified maximum value is less than the minimum value, it 
 is changed to be the same as the minimum value. If the initial 
 value is lower than the minimum value, it is changed to be the 
 minimum value; if it is greater than the maximum value, it is 
 changed to be the maximum value.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> orientation - indicates the orientation of the scroll bar.
    <dd> value - the initial value of the scroll bar.
    <dd> visible - the size of the scroll bar's bubble, representing
                      the visible portion; the scroll bar uses this 
value when paging up or down by a page.
    <dd> minimum - the minimum value of the scroll bar.
    <dd> maximum - the maximum value of the scroll bar.
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="addNotify()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="addNotify"><b>addNotify</b></a>
<pre>
 public void addNotify()
</pre>
<dl>
  <dd> Creates the Scrollbar's peer.  The peer allows you to modify
 the appearance of the Scrollbar without changing any of its
 functionality.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#addNotify()">addNotify</a> in class <a href="java.awt.Component.html#_top_">Component</a>
  </dl></dd>
</dl>
<a name="getOrientation()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getOrientation"><b>getOrientation</b></a>
<pre>
 public int getOrientation()
</pre>
<dl>
  <dd> Determines the orientation of this scroll bar.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the orientation of this scroll bar, either
               <code>Scrollbar.HORIZONTAL</code> or 
               <code>Scrollbar.VERTICAL</code>.
    <dt> <b>See Also:</b>
    <dd> <a href="#setOrientation">setOrientation</a>
  </dl></dd>
</dl>
<a name="setOrientation(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setOrientation"><b>setOrientation</b></a>
<pre>
 public void setOrientation(int orientation)
</pre>
<dl>
  <dd> Sets the orientation for this scroll bar.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> the - orientation of this scroll bar, either
               <code>Scrollbar.HORIZONTAL</code> or 
               <code>Scrollbar.VERTICAL</code>.
    <dt> <b>Throws:</b> <a href="java.lang.IllegalArgumentException.html#_top_">IllegalArgumentException</a>
    <dd> if the value supplied
                   for <code>orientation</code> is not a
                   legal value.
    <dt> <b>See Also:</b>
    <dd> <a href="#getOrientation">getOrientation</a>
  </dl></dd>
</dl>
<a name="getValue()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getValue"><b>getValue</b></a>
<pre>
 public int getValue()
</pre>
<dl>
  <dd> Gets the current value of this scroll bar.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the current value of this scroll bar.
    <dt> <b>See Also:</b>
    <dd> <a href="#getMinimum">getMinimum</a>, <a href="#getMaximum">getMaximum</a>
  </dl></dd>
</dl>
<a name="setValue(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setValue"><b>setValue</b></a>
<pre>
 public void setValue(int newValue)
</pre>
<dl>
  <dd> Sets the value of this scroll bar to the specified value.
 <p>
 If the value supplied is less than the current minimum or 
 greater than the current maximum, then one of those values
 is substituted, as appropriate.
 <p>
 Normally, a program should change a scroll bar's  
 value only by calling <code>setValues</code>. 
 The <code>setValues</code> method simultaneously 
 and synchronously sets the minimum, maximum, visible amount, 
 and value properties of a scroll bar, so that they are 
 mutually consistent.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> newValue - the new value of the scroll bar.
    <dt> <b>See Also:</b>
    <dd> <a href="#setValues">setValues</a>, <a href="#getValue">getValue</a>, <a href="#getMinimum">getMinimum</a>, <a href="#getMaximum">getMaximum</a>
  </dl></dd>
</dl>
<a name="getMinimum()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getMinimum"><b>getMinimum</b></a>
<pre>
 public int getMinimum()
</pre>
<dl>
  <dd> Gets the minimum value of this scroll bar.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the minimum value of this scroll bar.
    <dt> <b>See Also:</b>
    <dd> <a href="#getValue">getValue</a>, <a href="#getMaximum">getMaximum</a>
  </dl></dd>
</dl>
<a name="setMinimum(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setMinimum"><b>setMinimum</b></a>
<pre>
 public void setMinimum(int newMinimum)
</pre>
<dl>
  <dd> Sets the minimum value of this scroll bar.
 <p>
 Normally, a program should change a scroll bar's minimum 
 value only by calling <code>setValues</code>. 
 The <code>setValues</code> method simultaneously 
 and synchronously sets the minimum, maximum, visible amount, 
 and value properties of a scroll bar, so that they are 
 mutually consistent.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> newMinimum - the new minimum value
                     for this scroll bar.
    <dt> <b>See Also:</b>
    <dd> <a href="#setValues">setValues</a>, <a href="#setMaximum">setMaximum</a>
  </dl></dd>
</dl>
<a name="getMaximum()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getMaximum"><b>getMaximum</b></a>
<pre>
 public int getMaximum()
</pre>
<dl>
  <dd> Gets the maximum value of this scroll bar.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the maximum value of this scroll bar.
    <dt> <b>See Also:</b>
    <dd> <a href="#getValue">getValue</a>, <a href="#getMinimum">getMinimum</a>
  </dl></dd>
</dl>
<a name="setMaximum(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setMaximum"><b>setMaximum</b></a>
<pre>
 public void setMaximum(int newMaximum)
</pre>
<dl>
  <dd> Sets the maximum value of this scroll bar.
 <p>
 Normally, a program should change a scroll bar's maximum 
 value only by calling <code>setValues</code>. 
 The <code>setValues</code> method simultaneously 
 and synchronously sets the minimum, maximum, visible amount, 
 and value properties of a scroll bar, so that they are 
 mutually consistent.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> newMaximum - the new maximum value
                     for this scroll bar.
    <dt> <b>See Also:</b>
    <dd> setValues, setMinimum
  </dl></dd>
</dl>
<a name="getVisibleAmount()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getVisibleAmount"><b>getVisibleAmount</b></a>
<pre>
 public int getVisibleAmount()
</pre>
<dl>
  <dd> Gets the visible amount of this scroll bar.
 <p>
 The visible amount of a scroll bar is the range of 
 values represented by the width of the scroll bar's 
 bubble. It is used to determine the scroll bar's 
 block increment.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the visible amount of this scroll bar.
    <dt> <b>See Also:</b>
    <dd> <a href="#setVisibleAmount">setVisibleAmount</a>
  </dl></dd>
</dl>
<a name="getVisible()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getVisible"><b>getVisible</b></a>
<pre>
 public int getVisible()
</pre>
<dl>
<dd><b> Note: getVisible() is deprecated.</b>
<i>As of JDK version 1.1,
 replaced by <code>getVisibleAmount()</code>.</i>
<p>
</dl>
<a name="setVisibleAmount(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setVisibleAmount"><b>setVisibleAmount</b></a>
<pre>
 public void setVisibleAmount(int newAmount)
</pre>
<dl>
  <dd> Sets the visible amount of this scroll bar.
 <p>
 The visible amount of a scroll bar is the range of 
 values represented by the width of the scroll bar's 
 bubble. It is used to determine the scroll bar's 
 block increment.
 <p>
 Normally, a program should change a scroll bar's  
 value only by calling <code>setValues</code>. 
 The <code>setValues</code> method simultaneously 
 and synchronously sets the minimum, maximum, visible amount, 
 and value properties of a scroll bar, so that they are 
 mutually consistent.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> newAmount - the amount visible per page.
    <dt> <b>See Also:</b>
    <dd> <a href="#getVisibleAmount">getVisibleAmount</a>, <a href="#setValues">setValues</a>
  </dl></dd>
</dl>
<a name="setUnitIncrement(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setUnitIncrement"><b>setUnitIncrement</b></a>
<pre>
 public void setUnitIncrement(int v)
</pre>
<dl>
  <dd> Sets the unit increment for this scroll bar. 
 <p>
 The unit increment is the value that is added (subtracted) 
 when the user activates the unit increment area of the 
 scroll bar, generally through a mouse or keyboard gesture
 that the scroll bar receives as an adjustment event.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> v - the amount by which to increment or decrement
                         the scroll bar's value.
    <dt> <b>See Also:</b>
    <dd> <a href="#getUnitIncrement">getUnitIncrement</a>
  </dl></dd>
</dl>
<a name="setLineIncrement(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setLineIncrement"><b>setLineIncrement</b></a>
<pre>
 public synchronized void setLineIncrement(int v)
</pre>
<dl>
<dd><b> Note: setLineIncrement() is deprecated.</b>
<i>As of JDK version 1.1,
 replaced by <code>setUnitIncrement(int)</code>.</i>
<p>
</dl>
<a name="getUnitIncrement()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getUnitIncrement"><b>getUnitIncrement</b></a>
<pre>
 public int getUnitIncrement()
</pre>
<dl>
  <dd> Gets the unit increment for this scrollbar.
 <p>
 The unit increment is the value that is added (subtracted) 
 when the user activates the unit increment area of the 
 scroll bar, generally through a mouse or keyboard gesture
 that the scroll bar receives as an adjustment event.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the unit increment of this scroll bar.
    <dt> <b>See Also:</b>
    <dd> <a href="#setUnitIncrement">setUnitIncrement</a>
  </dl></dd>
</dl>
<a name="getLineIncrement()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLineIncrement"><b>getLineIncrement</b></a>
<pre>
 public int getLineIncrement()
</pre>
<dl>
<dd><b> Note: getLineIncrement() is deprecated.</b>
<i>As of JDK version 1.1,
 replaced by <code>getUnitIncrement()</code>.</i>
<p>
</dl>
<a name="setBlockIncrement(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setBlockIncrement"><b>setBlockIncrement</b></a>
<pre>
 public void setBlockIncrement(int v)
</pre>
<dl>
  <dd> Sets the block increment for this scroll bar. 
 <p>
 The block increment is the value that is added (subtracted) 
 when the user activates the block increment area of the 
 scroll bar, generally through a mouse or keyboard gesture
 that the scroll bar receives as an adjustment event.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> v - the amount by which to increment or decrement
                         the scroll bar's value.
    <dt> <b>See Also:</b>
    <dd> <a href="#getBlockIncrement">getBlockIncrement</a>
  </dl></dd>
</dl>
<a name="setPageIncrement(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setPageIncrement"><b>setPageIncrement</b></a>
<pre>
 public synchronized void setPageIncrement(int v)
</pre>
<dl>
<dd><b> Note: setPageIncrement() is deprecated.</b>
<i>As of JDK version 1.1,
 replaced by <code>setBlockIncrement()</code>.</i>
<p>
</dl>
<a name="getBlockIncrement()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getBlockIncrement"><b>getBlockIncrement</b></a>
<pre>
 public int getBlockIncrement()
</pre>
<dl>
  <dd> Gets the block increment of this scroll bar.
 <p>
 The block increment is the value that is added (subtracted) 
 when the user activates the block increment area of the 
 scroll bar, generally through a mouse or keyboard gesture
 that the scroll bar receives as an adjustment event.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the block increment of this scroll bar.
    <dt> <b>See Also:</b>
    <dd> <a href="#setBlockIncrement">setBlockIncrement</a>
  </dl></dd>
</dl>
<a name="getPageIncrement()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getPageIncrement"><b>getPageIncrement</b></a>
<pre>
 public int getPageIncrement()
</pre>
<dl>
<dd><b> Note: getPageIncrement() is deprecated.</b>
<i>As of JDK version 1.1,
 replaced by <code>getBlockIncrement()</code>.</i>
<p>
</dl>
<a name="setValues(int, int, int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setValues"><b>setValues</b></a>
<pre>
 public synchronized void setValues(int value,
                                    int visible,
                                    int minimum,
                                    int maximum)
</pre>
<dl>
  <dd> Sets the values of four properties for this scroll bar.
 <p>
 This method simultaneously and synchronously sets the values 
 of four scroll bar properties, assuring that the values of
 these properties are mutually consistent. It enforces the 
 constraints that maximum cannot be less than minimum, and that 
 value cannot be less than the minimum or greater than the maximum.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> value - is the position in the current window.
    <dd> visible - is the amount visible per page.
    <dd> minimum - is the minimum value of the scroll bar.
    <dd> maximum - is the maximum value of the scroll bar.
  </dl></dd>
</dl>
<a name="addAdjustmentListener(java.awt.event.AdjustmentListener)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="addAdjustmentListener"><b>addAdjustmentListener</b></a>
<pre>
 public synchronized void addAdjustmentListener(<a href="java.awt.event.AdjustmentListener.html#_top_">AdjustmentListener</a> l)
</pre>
<dl>
  <dd> Adds the specified adjustment listener to receive instances of 
 <code>AdjustmentEvent</code> from this scroll bar.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> l - the adjustment listener.
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.event.AdjustmentEvent.html#_top_">AdjustmentEvent</a>, <a href="java.awt.event.AdjustmentListener.html#_top_">AdjustmentListener</a>, <a href="#removeAdjustmentListener">removeAdjustmentListener</a>
  </dl></dd>
</dl>
<a name="removeAdjustmentListener(java.awt.event.AdjustmentListener)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="removeAdjustmentListener"><b>removeAdjustmentListener</b></a>
<pre>
 public synchronized void removeAdjustmentListener(<a href="java.awt.event.AdjustmentListener.html#_top_">AdjustmentListener</a> l)
</pre>
<dl>
  <dd> Removes the specified adjustment listener so that it no longer 
 receives instances of <code>AdjustmentEvent</code> from this scroll bar.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> l - the adjustment listener.
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.event.AdjustmentEvent.html#_top_">AdjustmentEvent</a>, <a href="java.awt.event.AdjustmentListener.html#_top_">AdjustmentListener</a>, <a href="#addAdjustmentListener">addAdjustmentListener</a>
  </dl></dd>
</dl>
<a name="processEvent(java.awt.AWTEvent)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="processEvent"><b>processEvent</b></a>
<pre>
 protected void processEvent(<a href="java.awt.AWTEvent.html#_top_">AWTEvent</a> e)
</pre>
<dl>
  <dd> Processes events on this scroll bar. If the event is an 
 instance of <code>AdjustmentEvent</code>, it invokes the 
 <code>processAdjustmentEvent</code> method. 
 Otherwise, it invokes its superclass's 
 <code>processEvent</code> method.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> e - the event.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#processEvent(java.awt.AWTEvent)">processEvent</a> in class <a href="java.awt.Component.html#_top_">Component</a>
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.event.AdjustmentEvent.html#_top_">AdjustmentEvent</a>, <a href="#processAdjustmentEvent">processAdjustmentEvent</a>
  </dl></dd>
</dl>
<a name="processAdjustmentEvent(java.awt.event.AdjustmentEvent)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="processAdjustmentEvent"><b>processAdjustmentEvent</b></a>
<pre>
 protected void processAdjustmentEvent(<a href="java.awt.event.AdjustmentEvent.html#_top_">AdjustmentEvent</a> e)
</pre>
<dl>
  <dd> Processes adjustment events occurring on this 
 scrollbar by dispatching them to any registered 
 <code>AdjustmentListener</code> objects.
 <p>
 This method is not called unless adjustment events are 
 enabled for this component. Adjustment events are enabled 
 when one of the following occurs:
 <p><ul>
 <li>An <code>AdjustmentListener</code> object is registered 
 via <code>addAdjustmentListener</code>.
 <li>Adjustment events are enabled via <code>enableEvents</code>.
 </ul><p>
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> e - the adjustment event.
    <dt> <b>See Also:</b>
    <dd> <a href="java.awt.event.AdjustmentEvent.html#_top_">AdjustmentEvent</a>, <a href="java.awt.event.AdjustmentListener.html#_top_">AdjustmentListener</a>, <a href="#addAdjustmentListener">addAdjustmentListener</a>, <a href="java.awt.Component.html#enableEvents">enableEvents</a>
  </dl></dd>
</dl>
<a name="paramString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="paramString"><b>paramString</b></a>
<pre>
 protected <a href="java.lang.String.html#_top_">String</a> paramString()
</pre>
<dl>
  <dd> Returns the parameter string representing the state of 
 this scroll bar. This string is useful for debugging.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the parameter string of this scroll bar.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.awt.Component.html#paramString()">paramString</a> in class <a href="java.awt.Component.html#_top_">Component</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.awt.html">This Package</a>  <a href="java.awt.ScrollPane.html#_top_">Previous</a>  <a href="java.awt.SystemColor.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
