new Gauge(null, false, 100, 50) : Gauge « J2ME « Java Tutorial






new Gauge(null, false, 100, 50)
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Gauge;
import javax.microedition.midlet.MIDlet;

public class GaugeFalseMIDlet extends MIDlet {
  protected Display display;

  protected void startApp() {
    display = Display.getDisplay(this);

    Form form = new Form("Demo");

    form.append("line");
    form.append(new Gauge(null, false, 100, 50));

    display.setCurrent(form);
  }

  protected void pauseApp() {
  }

  protected void destroyApp(boolean unconditional) {
  }
}








31.15.Gauge
31.15.1.Add Gauge to a formAdd Gauge to a form
31.15.2.Use active and inactive GaugeUse active and inactive Gauge
31.15.3.new Gauge(null, false, 100, 50)new Gauge(null, false, 100, 50)
31.15.4.Gauge TrackerGauge Tracker
31.15.5.Gauge Non InteractiveGauge Non Interactive
31.15.6.Gauge InteractiveGauge Interactive