Gauge in Java ME (Português)
Dados do artigo
Compatibilidade
Plataforma(s): Java ME
Artigo
Tradução:
Originado de Gauge
Por valderind4
Última alteração feita por lpvalente
em 07 Feb 2012
Este artigo mostra como criar um Form com um 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);
}
}
O resultado é o seguinte screenshot.



(no comments yet)