This example shows, how to create the Gauge class to draw the interactive and non-interactive gauge which is used to display the volume label.
The javax.microedition.lcdui.Gauge class has only one constructor as:
Gauge(String label, boolean interactive, int maxValue, int initialValue):- This is used to creates a new Gauge object with the given label, in interactive or non-interactive mode, with the given maximum and initial values.
In this Interactive gauge example, we are using following methods:
The Application is as follows:
Source Code of GaugeExample.java
If you enjoyed this post then why not add us on Google+? Add us to your Circles
Liked it! Share this Tutorial
Ask Questions? Discuss: Interactive, Non-Interactive Gauge Example
Post your Comment