Namespaces
Variants
Actions

Gauge

Jump to: navigation, search
SignpostIcon Asha UI.png
Article Metadata

Article
Created: giaperrucci (07 Jun 2007)
Last edited: hamishwillee (11 Jan 2012)

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

This page was last modified on 11 January 2012, at 03:03.
94 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved