×
Namespaces

Variants
Actions
Revision as of 09:39, 4 June 2009 by tanjaluodes (Talk | contribs)

Gauge in LCDUI

From Nokia Developer Wiki
Jump to: navigation, search

The following code creates a Form with a Gauge.

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
 
public class Gauge_ex extends MIDlet
{
Display display=Display.getDisplay(this);
 
public void startApp()
{
Form form = new Form("Gauge example");
//Gauge(label,interaction,maxValue,InitialValue)
Gauge gauge = new Gauge("Gauge example", false, 20, 4);
form.append(gauge);
display.setCurrent(form);
}
}

The following screen shot is an outcome.

Gauge.png

74 page views in the last 30 days.
×