Class ProgressBarApplet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----ProgressBarApplet

public class ProgressBarApplet
extends Applet
implements ScrollReadable
This is a demo applet showing how to use the two lighweight components ProgressBar and Scroller.


Constructor Index

 o ProgressBarApplet()

Method Index

 o init()
 o ScrollRead(float, float)
Display the vertical percentage of the scrollbar on the label.

Constructors

 o ProgressBarApplet
  public ProgressBarApplet()

Methods

 o init
  public void init()
Overrides:
init in class Applet
 o ScrollRead
  public void ScrollRead(float horPercentage,
                         float vertPercentage)
Display the vertical percentage of the scrollbar on the label. The percentage is passed to this method from the Scroller object whenever the scrollbars are used. The horizontal and vertical percentages are a float between 0 and 1.

1