License

Copyright (c) 2001 by Skybound Software, http://www.skybound.nl All rights reserved.

This software may be freely copied, modified and redistributed without fee for non-commerical purposes provided that this copyright notice is preserved intact on all copies and modified copies.

There is no warranty or other guarantee of fitness of this software. It is provided solely "as is". The author(s) disclaim(s) all responsibility and liability with respect to this software's usage or its effect upon hardware or computer systems.

Demo

nl.skybound.applet.ScrollbarApplet will appear below in a Java enabled browser.




Watch the applet interact with an HTML form input field below:

Read the applet's value by clicking on the button below:

Documentation

If you want to see how that applet above works, then just view the source code of this HTML page.

Applet parameters

Parameter nameCompulsory?Description
CaptionNoThe caption text to be displayed above the applet. If you leave this parameter out, then no caption will be displayed.
JSMethodNameYesThe name of the Javascript function to be called whenever the value of the scrollbar changes. This function will receive one float parameter containing the value of the scrollbar.
BGColorNoThe background color of the applet. This should normally be the same as the background color of the web page. You may set it to any RGB hex color code just as you would do with the HTML font tag (for example #FFFFFF)
FGColorNoThe foreground color of the applet. This applies to the labels and should normally be the same as the font color of the web page. You may set it to any RGB hex color code just as you would do with the HTML font tag (for example #000000)
MaximumNoThe maximum value of the scrollbar. Default is 100.
MinimumNoThe minimum value of the scrollbar. Default is 0.
ValueNoThe initial value of the scrollbar. Default is 0.
UnitIncrementNoThe amount by which the scrollbar's value increases when you click on the arrows. Default is 1.
BlockIncrementNoThe amount by which the scrollbar's value increases when you click on the bar. Default is 10.
VisibleAmountNoThe visible amount of the scrollbar's slider button. Default is 10.
DecimalsNoThe number of floating point decimals to be used (precision). Default = 0. If you use a value larger than 0, then all amounts above may be expressed as floating point values.
FontFaceNoThe font face.
FontSizeNoThe font size.
FontStyleNoThe font style. Empty or comma seperated list containing any of the values: bold,italic,truetype.
Whenever parameters are missing or invalid, then the applet will write a message about that to STDERR (viewable with JavaConsole if you have that in your browser).