FIGUE
*Tutorial *Previous *Current *Next

Working with Scrollbars : Scroller Customization

* Step by Step

Define an initializer.
private final FacadeInitializer getParameters() {
  FacadeInitializer theParameters = new FacadeInitializer();
Add the choosen scrollbar policy to the initializer.
theParameters.setHorizontalScrollbarPolicy(
                    ScrollbarPolicy.ALWAYS);

theParameters.setHorizontalScrollbarPolicy(
                     ScrollbarPolicy.NEVER);

theParameters.setHorizontalScrollbarPolicy(
                 ScrollbarPolicy.AS_NEEDED);
Pass the initializer to the facade on creation.
_facade = new AWTFacade(getParameters());
If needed do the same for the vertical scrollbar.
theParameters.setVerticaltalScrollbarPolicy(
                    ScrollbarPolicy.ALWAYS);

* Example

Accelerators :
home, end, page up, page down, left arrow,right arrow, up arrow, down arrow.
Autoscrolling :
drag the mouse inside the text area, approach a border or a corner, and wait.
Actions :
- select the horizontal/vertical scroll policy with the relevant choice,
- apply the new parameters,
- alternatively add/remove data.

* The Whole Program

* Related Classes and Methods

* What Next ?

Now you can :

*Tutorial *Previous *Current *Next

Comments or suggestions?
Need some help?
Copyright ©1998 INRIA
Last updated 4 November 1998 by Bruno Conductier
FIGUE