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
1 answer

How to interact between GameCanvas and LCDUI elements on J2ME?

The thing is I writing a J2ME program that fisrt of all show a "menu" using graphics interface (GameCanvas) and when the user select one item, I need to setCurrent that item (ex. a List), but when return from the List (it could be because the user…
Santiago
  • 2,190
  • 10
  • 30
  • 59
0
votes
2 answers

Adding gauge in location finder class in j2me

I am working on a j2me application which contain a class to find the location of mobile using GPS.I need to include gauge while the location provider API is called and it finds the location.I am new to j2me so still not clear with all the concepts.I…
zzzz
  • 63
  • 2
  • 12
0
votes
0 answers

Can not able to call my canvas object to my midlet in j2me?

I made a form to accept the player name then On ok press it will give me an alert and on done click it will take me to a list Start,Credit and Highscore . Please help I am totally new in this field this is start function where i made my canvas…
0
votes
1 answer

Touch event on midlet command

I am creating application for touch devices for nokia. J2ME provides methods pointerPressed, released and dragged on canvas. I have generated a canvas in full screen mode having commands. On click of "option" command, another command menu opens,…
rajiv
  • 11
  • 1
  • 3
0
votes
1 answer

Setting textfield value back to null for login j2me program

Below is some code which simply allows a user to log in, however i want to be able to reset the value of the text fields userName and password to nothing in the else statement if the user enters the name or password wrong so that is no longer…
Jaron787
  • 562
  • 1
  • 11
  • 29
0
votes
1 answer

How to create Array of forms in java me

I need to create an array of multiple forms, the code below doesn't seem to be working . . private Form[] myForm3; myForm3[0] = new Form("Course grade points in each sem " ); Display.getDisplay(this).setCurrent(myForm3[0]); I am actually trying…
rtmatchbox
  • 29
  • 8
0
votes
2 answers

run j2me midlet as a foregorund process

I have got a problem with my MIDlet application. Whenever I execute this MIDlet the emulator shows the error: 'This application does not use the screen, and runs in background'. So far I know that we have to give the reference of the screen to the…
Shreyas
  • 83
  • 1
  • 9
0
votes
1 answer

Resize StringItem Button in J2ME

Please let me know how to resize StringItem button. I want to make it large. btnExit= new StringItem("", "Exit", StringItem.BUTTON);
Parmanand
  • 355
  • 2
  • 6
  • 15
0
votes
2 answers

lcdui v/s lwuit

I want to create j2me screens for an application. I am new to j2me and wnat to know if i should opt for lcdui or lwuit. I read that lwuit will be supported only in CLDC 1.1 mobiles. I would like to know the list of CLDC 1.0 mobiles. From what I have…
0
votes
1 answer

Is there a way to implement Item(s) in a Canvas instead of in a Form?

I am trying to make a game application and create a menu of strings that can be selected easily by the user by just clicking the arrow keys on their devices. I already know how I could do it the longway by identifying the user's actions using…
tamtam
  • 1
0
votes
1 answer

Dialling a phone number by platformrequest

I have tried for two days to write a code that dial a phone number , but I failed I have written a midlet and a form called main as a Displayable the form contains a textfield and command . When the application starts up the form should appears…
PHPFan
  • 756
  • 3
  • 12
  • 46
0
votes
1 answer

New Extra Commands and It is never declared?

my problem is in this Java-Me Application : http://www.developer.nokia.com/Community/Wiki/Making_a_phone_call_programmatically_using_platformRequest()_in_Java_ME this application lets the user dial a number inserted into a text field. Now all are…
user1739833
  • 41
  • 1
  • 5
0
votes
3 answers

Button Image Problem

hallo. I want to ask something to you here. I know this may be easy for you, but this may be difficult for me. I learn new J2ME. I want to know the basics of the programing languages this. I have a case like this: class DrawImageCanvas extends…
Ahmad Ramdani
  • 208
  • 4
  • 14
0
votes
0 answers

Remove menu bar and J2ME native commands from the screen

I want to display the status bar in my J2ME application so I put this line of code in the midlet, ((Canvas) (javax.microedition.lcdui.Display.getDisplay(this).getCurrent())).setFullScreenMode(false); So I want to remove the whole menu bar and the…
Reham
  • 1,916
  • 6
  • 21
  • 45
0
votes
2 answers

Determining the index of an Item on a Form (J2ME)

Given an Item that has been appended to a Form, whats the best way to find out what index that item is at on the Form? Form.append(Item) will give me the index its initially added at, but if I later insert items before that the index will be out of…
roryf
  • 29,592
  • 16
  • 81
  • 103