Wednesday, September 10, 2008 | |

J2ME Display

  • The devices display is seen as an instance of Display class in MIDP or CLDC profile.
  •  The bit depth should be atlaest one. A bit depth of one can have 2 colors.Black and white. A bit  depth of 2 can have four and so on...So an n bit display willl allow 2^N colors.
  • javax.microedition.lcdui and javax.microedition.lcdui.game packages manage the display.
  • Contents of display are changed by passing Displayable() instances to setCurrent() method of Display.
  • public void startApp() {
    Display d = Display.getDisplay(this);
    // ...
    } // this is a typical program to start Display in the startApp() method.

0 comments: