0 Replies Latest reply: Oct 13, 2010 11:30 AM by 805196 RSS

    Remove buttons at the bottom of the screen in Nokia X60

    805196
      Hi,

      I am creating an application for Nokia X6. I am using Java ME Platform SDK 3.0 - Version 3.0.
      I want the application to be full screen but I can't. There are always some buttons that appear at the bottom of the screen. Four of those buttons are arrow buttons in a circular configuration. There are also four "A B C D" buttons at the bottom of the screen. I want to remove these buttons, but I can't.

      Can you help me? I imagine this is kind of a newbie question, but I really don't know what to do.


      The source code is bellow:




      package hello;

      import javax.microedition.midlet.*;
      import javax.microedition.lcdui.*;

      public class HelloMIDlet extends MIDlet implements CommandListener {

      private Command exitCommand; // The exit command
      private Display display; // The display for this MIDlet
      private Tela ttt;

      public HelloMIDlet() {
      display = Display.getDisplay(this);
      ttt = new Tela(this);
      exitCommand = new Command("Exit", Command.EXIT, 0);
      }

      public void startApp() {
      TextBox t = new TextBox("Hello", "Hello, World!", 256, 0);

      t.addCommand(exitCommand);
      t.setCommandListener(this);

      display.setCurrent(ttt);
      }

      public void pauseApp() {
      }

      public void destroyApp(boolean unconditional) {
      }

      public void commandAction(Command c, Displayable s) {
      if (c == exitCommand) {
      destroyApp(false);
      notifyDestroyed();
      }
      }

      public void exitMIDlet(){
      destroyApp(false);
      notifyDestroyed();
      }
      }




      class Tela extends Canvas implements CommandListener{


      private Command cmExit;
      private HelloMIDlet midlet;

      public Tela(HelloMIDlet midlet){
      this.setFullScreenMode(true);
      this.midlet = midlet;
      cmExit = new Command("Sair", Command.EXIT, 1);
      setCommandListener(this);
      }

      public void paint(Graphics g){
      g.setColor(0x00FF00);
      g.drawString("Hello World", 0, 100, Graphics.LEFT | Graphics.TOP);
      }


      public void commandAction(Command c, Displayable d){
      if(c == cmExit){
      midlet.exitMIDlet();
      }
      }


      }