<P><a name="Scrollbar">
<font size=+1><b>Scrollbar</b></font><P>
</a>

A <a href=http://java.sun.com:80/products/JDK/CurrentRelease/api/java.awt.Scrollbar.html>Scrollbar</a> is a "slider" widget containing an integer value.  The range of the integer value is set during Scrollbar construction.  Both horizontal and
vertical sliders are available.

<center>
<hr>
<applet code=ScrollbarWidget.class codebase=Examples width=100 height=15></applet>
<hr>
</center>

<p>
Corresponding source code:

<tt><pre>
import java.applet.*;
import java.awt.*;
public class ScrollbarWidget extends Applet {
    public void init() {
        // using a GridLayout ensures Scrollbar fills applet
        setLayout(new GridLayout(1,1));
        Scrollbar sb;
        sb = new Scrollbar(Scrollbar.HORIZONTAL,
                           0,  // initial value is 0
                          10,  // slide control size
                        -100,100); // range is [-100,100]
        add(sb);
    }
}
</pre></tt>

<p>
Method(s) of note:
<ul>
<li><tt>public Scrollbar(int  orientation)</tt><br>
Constructs a Scrollbar with the specified orientation either Scrollbar.HORIZONTAL or Scrollbar.VERTICAL.
<li><tt>public Scrollbar(int orientation, int value, int visible,
int minimum, int maximum)</tt><br>
Constructs a Scrollbar with the specified orientation, initial value (where the "thumb" is positioned), visible page size, and minumum and maximum range values.  The visible argument is 0 when you just want a slider control not a window scroller.
</ul>