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

262 questions
0
votes
2 answers

How to get the image center, strech, fill, tilt in J2ME?

How to get these effects in a J2ME project? I need a similar effect like CSS background like we write: background:#fff url(img.png) repeat-x; I need this kind of thing in J2ME. Can I do it?
Siddhartha
  • 236
  • 1
  • 3
  • 11
0
votes
1 answer

J2ME Insert a list element into a new form TextField

I want to insert an element of a list into one new form's Textfield and change its value. Is it possibe? If not, is it possible to change an element of a list at all by selecting it and type a new value? Thanks!
James P
  • 9
  • 1
  • 3
0
votes
1 answer

Show loading form while parsing XML in J2ME

I am parsing xml from remote server using kxml parser. I am using the following code to parse xml public void validateUser(String name, String password, String mobile, String code) { Display.getDisplay(parent).setCurrent(new…
Abdullah Md. Zubair
  • 3,312
  • 2
  • 30
  • 39
0
votes
1 answer

Canvas Repaint After Downloading the Image

Creating a J2ME application. PROBLEM:how i repainting the displayed canvas without ant user event. Trying to display canvas page,page contains text and image.first time we display text and local image in screen,after displaying it downloading the…
Rajesh M P
  • 477
  • 1
  • 10
  • 21
0
votes
1 answer

How to write Scrollable for Table in j2me by canvas?

Now i try to draw a table by Canvas, but i have a problem, my table doesnt has scrollable. How can i write some code to help my table can scrollable? My Code here import javax.microedition.lcdui.Canvas; import…
MYE
  • 983
  • 8
  • 24
  • 41
0
votes
2 answers

Canvas J2mE list form

How can I create create a form/list using canvas and add TextField to it? public void paint(Graphics g){ g.setColor(44,255,44); g.fillRect(0,0, getWidth (), getHeight ()); form = new Form(""); form.append("acfascca"); }
RNZN
  • 107
  • 3
  • 12
0
votes
1 answer

How to switch canvas in j2me

I am developing a j2me application using canvas. In my application I have 3 canvas. I need to switch them regularly but sometimes I am facing problem either they don't switch or I got blank white screen I use display.setCurrent(maincanvas); But…
Abhishek
  • 39
  • 2
0
votes
1 answer

Java 2 ME GameCanvas -- How to receive all keyPressed events?

Hello I'm writing simple j2me calculator. using GameCanvas class as a basis of my interface. I need to handle both numpad key events and game-relaited events (such as UP, DOWN, FIRE, etc) for moving my cursor. The problem is that neither emulator,…
nikagra
  • 835
  • 2
  • 9
  • 23
0
votes
1 answer

JavaMe MIDlet and Canvas

I'm trying to make a program that uses midlet for the menu. When certain command accessed from the menu,it will access the canvas (like in a popup button a selection of fillrectangle and fillarc). If I select the fillrectangle it will access the…
user624835
  • 11
  • 1
0
votes
3 answers

Checking the CustomItem in j2me support traversal or not

Checking the CustomItem in j2me support traversal or not? How should I check the CustomItem in j2me support traversal or not?
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80
0
votes
2 answers

My J2me application working correctly in simulator but not working correctly in Mobile phone

I developed a J2ME project using sun java wireless toolkit 2.5.2_01 for CLDC. In my project I display a form namely TableForm. Inside that form I display a table CustomItemTable. This table I created using javax.microedition.lcdui.CustomItem. The…
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80
0
votes
3 answers

How should I handle the key events in J2ME?

How should I handle the key events for CustomItem in J2ME?
SIVAKUMAR.J
  • 4,258
  • 9
  • 45
  • 80
0
votes
1 answer

Navigation from game canvas to a form

How do you navigate from a game canvas to a form in Java ME when you require a user to insert his or her username and password?
0
votes
3 answers

J2ME UI on Samsung Bada platform

When a J2ME application runs on Samsung phone with Samsung Bada an OS that supports TouchWhiz (GT-S5320, in my case),a virtual keypad is shown on the screen by default and always! This virtual keypad consists of the following keys -…
Kiran Kuppa
  • 1,457
  • 10
  • 18
0
votes
1 answer

combobox in j2me

How can I keep the combobox on the form in j2me with out using frameworks? I have tried this but it is not showing any drop down for selection. ChoiceGroup CoursePOP = new ChoiceGroup ("Pop Up choice", Choice.EXCLUSIVE, new String[] {"Python",…
Jugal Inani
  • 133
  • 1
  • 17