Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.Form


  /***************************************
   * Implemented from BasicMidlet to run the application.
   */
  protected void runApp()
  {
    Form aForm = new Form("Test");

    aForm.append("Testinfo");
    aForm.setCommandListener(this);

    aForm.addCommand(new ExecutableCommand("Quit", Command.EXIT, 99)
      {
        public void execute(Object rArg)
        {
          queryQuitApp();
        }
      });
    aForm.addCommand(new ExecutableCommand("Test Progress View",
                         Command.SCREEN, 1)
      {
        public void execute(Object rArg)
        {
          testProgressView();
View Full Code Here


            _list.addCommand(_mainExit);
            _list.setSelectCommand(_mainEdit);

            _list.setCommandListener(this);

            _addForm = new Form("Add CD");

            _artistCD = new TextField("Artist: ", null, 20, TextField.ANY);
            _titleCD = new TextField("Title: ", null, 20, TextField.ANY);

            _addForm.append(_artistCD);
View Full Code Here

                        "The Thermonuclear Device has been activated!\nTo disarm the device, dismiss this Alert.\nDevice will detonate in:");
        _alert.setCommandListener(this);
        _time = 10;

        // Create a simple screen.
        _form = new Form("Thermo-Nuclear Event");
        _form.append("Choose 'Go' from the menu.");
        _display = Display.getDisplay(this);

        // Add our command.
        _form.addCommand(new GoCommand("Go", Command.SCREEN, 1));
View Full Code Here

TOP

Related Classes of javax.microedition.lcdui.Form

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.