Sample Applet: Examples of Gauges in Action
Return to Gauge Bean Samples.Estimated Time Required: 5 minutes
The Gauges Applet demonstrates a selection of the available gauges. At the bottom of the applet is a slider that allows you to manually change the value of the gauges. Click on the slider background to change the value of the gauges in a single step, or drag the slider "thumb" to change the value of the gauges in rapid succession.
This simple applet illustrates the smooth animation of gauges, and gives an impression of how they may be customized visually. Within a visual builder such as IBM VisualAge for Java, many more customization options are available, allowing you to tailor the visual and operational properties to meet your needs.
What may not be apparent is that all of the gauges in the applet share a single GaugeModel, and merely represent the model in different ways. The slider updates the model, and the other gauges automatically update in response. The gauges have different inertial properties, and so update at different rates.
If your default browser supports Java 1.1, you should see applet running below. Because Gauges are now Swing components you will need to have the Swing 1.0.3 version of swing.jar or swingall.jar in your CLASSPATH. If you are using Netscape, you need Netscape 4.06 or a later version.
If you download the product, you can run the sample in the Appletviewer or in VisualAge for Java. To run the applet using Appletviewer: