<< Labs >> << Assignments >>

An Applet With Scrollbar

Base applet:


Class Scrollbar

  • is in java.awt package
  • Constructors:
    • Scrollbar()
      Constructs a new vertical scroll bar with default properties (min 0, max 100, value 0, increment 1, etc).
    • Scrollbar(int orientation)
      Constructs a new default scroll bar with the specified orientation.
    • Scrollbar(int orientation, int value, int visible, int minimum, int maximum)
      Constructs a new scroll bar with the specified orientation, initial value, visible amount, and minimum and maximum values.

Change textfield to show initial value


Change the initial values and orientation of the scrollbar (vertical with initial value 10, min 1, max 20)



© 2011 The Pain Dealers. All Rights Reserved. Designed by Toxicman. Sponsored by The Pain Radio
Apache: , PHP: 5.2.5