Questions tagged [lcdui]

user interface package in Java ME MIDP API

Java ME MIDP-specific classes used for the GUI.

Find below references to API documentation, tutorials, popular libraries.

API reference

tutorials

  • MIDP user interface - JavaWorld

    This article covers mobile phone UI development using the MIDP APIs... The topics in this article are as follows:

    • The design of the MIDP UI API: covers the overall design of the LCDUI API, including the distinction between the high-level and low-level APIs. We introduce the common display and UI event models for all LCDUI Screen and Canvas classes.
    • The low-level API: covers the pixel-based API. We discuss how to draw on the Canvas and how to handle keypad events. A useful example illustrates how to add animation functionality to Canvas applications...
  • J2ME Tutorial: User Interfaces with MIDP 2.0 | Java.net

    Introduces MIDP User Interface Architecture, working with the High-Level and Low-Level API, Handling User Commands

  • Getting Started With the MIDP 2.0 Game API

    This article reviews MIDP 1.0's limitations for game programming, then presents a quick introduction to the MIDP 2.0 Game API.

  • J2ME Tutorial: Exploring the Game API of MIDP 2.0 | Java.net

    A long-winded but comprehensive look at the gaming API of MIDP 2.0. Explains how to use the classes of this API using a full-fledged example and also the basics of game building.

  • MIDP Event Handling

    Learn how to handle high-level (such as selecting an item from a list) and low-level (such as pressing a key on the device) MIDP events with easy-to-understand examples.

  • Networking, User Experience, and Threads

    This article explains how your MIDlet can make network connections without compromising your user interface. It includes six iterative examples that illustrate multithreaded networking and the use of a wait screen.

  • Customizing Forms With CustomItems

    This article demonstrates the MIDP 2.0 custom item capabilities by building a simple outliner MIDlet.

popular libraries

  • LWUIT - widget-based UI library for J2ME enabled mobile devices
    learn more at lwuit tag wiki

  • J2ME Polish - a suite of tools and technologies for Java ME development
    learn more at j2mepolish tag wiki

264 questions
6
votes
2 answers

Gameloop for j2me "turn-based" game

Edit: This makes alot more sense to me now that i've taken a step away from the code, thanks for the help. Just found stack overflow the other day through Coding Horror and it looks awesome. Figure that i'd ask the community about a problem i'm…
LoginError
  • 95
  • 1
  • 8
6
votes
4 answers

J2ME (Java) - Null Pointer Exception caught in Display Class

I'm currently working with MIDlets (I am using a Visual MIDlet) in Netbeans, and a NullPointerException is being thrown but I do not know why. Note: The exception is not thrown when the program runs on the emulator, only when the OK Command button…
Tom
  • 2,753
  • 3
  • 25
  • 32
5
votes
2 answers

Switching between LWUIT Form and LCDUI Form

I have built a LWUIT UI class which contains the Midlet. I am basically using a theme from this midlet. But I need to jump to another LCDUI form which contains some LCDUI controls and I need to set display that LCDUI form. So is it possible to jump…
Abdullah Md. Zubair
  • 3,317
  • 2
  • 28
  • 38
5
votes
5 answers

J2ME Soft Key Wrapper

Reading some articles, told me that soft keys varies between devices. Some says -6 or -21 for left soft key and -7 or -22 for right soft key. Given this situation, is there any good wrapper or function or best practice to handle it properly? If not…
ariefbayu
  • 20,459
  • 10
  • 66
  • 89
4
votes
2 answers

Interrupting a java thread gracefully

I have written a Java ME puzzle game. I have written the code thus: there is a thread that starts when the app starts, and, once the game has got going, there's a second thread that just runs in an infinite loop -- the main game loop. The second…
Kevin Buzzard
  • 492
  • 4
  • 10
4
votes
4 answers

how to install javax.microedition.lcdui package into Netbeans

I am using NetBeans 6.9.1. When I try to import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Displayable; import…
MJH
  • 643
  • 2
  • 13
  • 35
4
votes
2 answers

Java ME - Multiple forms, moving from one screen to the next

I am using Java Micro Edition and I am trying to create a simple login form with a record store. When the user enters the details I'd like to check them against the ones stored and then move onto another screen like a welcome area. I have a feeling…
Garbit
  • 5,331
  • 6
  • 35
  • 69
4
votes
1 answer

J2ME Image Item slideshow

I have tried with image slideshow in j2me. Below is my code for image slideshow. But will it execute image don't slideshow and not displayed. If I click play button then image will slideshow automatically from image 0.jpg until image 7.jpg. this…
4
votes
5 answers

Loading image in Java J2ME

I have a problem with loading image with java 2ME. I have a image file "picture.png" in location drive "C:". After that I wrote my like this to show image from this location. import javax.microedition.midlet.*; import…
Sopolin
  • 576
  • 5
  • 15
  • 25
3
votes
1 answer

One itemStateChanged method for many Displayable objects in j2me

Can I have one itemStateChanged method to monitor changes triggered by user for many Displayable objects in a MIDlet (e.g. for a form and a list), using if clauses to decide what was changed, or do I have to create a different method for each…
nikos
  • 2,553
  • 11
  • 27
  • 38
3
votes
1 answer

J2me:Displayable.setTicker() automatically switch off nokia mobile

I am developing a mobile application in j2me. In that application I use 6 screen which is extends from the classes javax.microedition.lcdui.Form, javax.microedition.lcdui.List, etc. I create a Displayable(javax.microedition.lcdui.Displayable) object…
SIVAKUMAR.J
  • 4,002
  • 6
  • 42
  • 79
3
votes
1 answer

How to set caret position in textField in j2me?

Is it possible to set caret position in TextField in J2ME? There's a method getCaretPosition(), but I need to set it.
Sergey
  • 10,544
  • 23
  • 70
  • 110
3
votes
1 answer

J2ME: Get only year/month/day from DateField

I'm trying to use dateField to display which year, month or day has been selected in the calendar. public DateField getDateField() { dateField = new DateField("dateField", DateField.DATE); dateField.setDate(new…
Peter
  • 33
  • 1
  • 3
3
votes
1 answer

Encode GIF in J2ME

I have an Image object in J2ME and I'd like to enconde it to GIF. I've already found a JPEG and PNG encoder as well, but I'm wondering if it's possible to encode my Image in the GIF format, returning it's byte array. I'm doing something like…
Eduardo Abreu
  • 235
  • 2
  • 3
  • 9
3
votes
1 answer

Netbeans 8.0.1 package javax.microedition.lcdui.* does not exist

I get an error while using import javax.microedition.lcdui.*; package javax.microedition.lcdui.* does not exist. But the line import javax.microedition.midlet.MIDlet; does not give any error.
Reshma CB
  • 51
  • 2
  • 7
1
2 3
17 18