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
2
votes
2 answers

J2ME : How to save a line created by using drawline() and start again from the line's end point keeping the previous one?

I am trying to create a midlet with which I can draw anything using my cursor keys. I have used drawLine method. But I want to create a line then change direction keeping the previous line but the line keeps rotating. Basically I should be able to…
rumman0786
  • 1,150
  • 10
  • 20
2
votes
2 answers

J2ME getDisplay() method

In J2ME to create the Display class object we use private Display d; d=Display.getDisplay(this); What is this as parameter? I know this refers to the current instance but when I write the following I get errors d=Display.getDisplay(new…
Rameshwar.S.Soni
  • 630
  • 1
  • 8
  • 22
2
votes
1 answer

j2me working with list

I'm trying to "wrap" the javax.microedition.lcdui.List class into MyList class, I just want to use my own append, edit, delete methods (also getSelectedFlags but from superclass). I also want to manage the recordStore things, but I found that the…
Joe
  • 1,270
  • 2
  • 17
  • 24
2
votes
3 answers

How to do scrolling in j2me canvas?

I have created a sample application where I want to do scrolling, but I am not able to achieve the desired output. I have tried the following code inside paint method >>>>> g.translate(x,y); and passing the value for variable 'y' in keydown and…
iLearner
  • 1,670
  • 2
  • 19
  • 45
2
votes
1 answer

how to disable navigation keys in j2me?

We are using Sun Java Wireless Toolkit 2.5.2 and lcdui package for our j2me application. We want to disable the navigation keys (UP, DOWN, LEFT, RIGHT) programmatically. How can I do it?
Saravanan
  • 11,372
  • 43
  • 143
  • 213
2
votes
1 answer

how to use defineCollisionRectangle?

For starters, how can I use defineCollisionRectangle API? I've done some research about it and I think it doesn't have any use at all. True that I can just use collidesWith() to check if 2 sprites collide. But what I want to use a sprite that has…
Christian Eric Paran
  • 980
  • 6
  • 27
  • 49
2
votes
1 answer

How to draw large image in canvas and move upon key event

I have a large image. This image has some text for user. So I must not resize the image to fit in the smaller screen. Image is much larger than device screen size. My intention is to draw the complete image in canvas without comprising size. I want…
masiboo
  • 4,537
  • 9
  • 75
  • 136
2
votes
2 answers

Java2 ME: keyPressed() not working inside GameCanvas

I know J2ME is pretty outdated, but I have to do this for an assignment. Currently, I am using the GameCanvas class, and my game is a thread, so my code looks something like this.. class Game extends GameCanvas implements Runnable { public…
matt
  • 2,857
  • 7
  • 33
  • 58
2
votes
2 answers

how to draw several shape (circle, line, rec, etc.) with more control?

I know there is a nice class Graphics with basic api like drawLine, drawRect. But I need more control to set pixel size, wide, thick, thin, lines in my shape. My intention is to draw a dynamic shape (similar to attached image) depending on different…
masiboo
  • 4,537
  • 9
  • 75
  • 136
2
votes
1 answer

J2me set font to the whole list

There's a method setFont(int listItem, Font font) in List class which sets some font to the list item. So I have to run through the list items and set fonts in a cycle. Is there any method to set one font to the whole list?
Sergey
  • 11,548
  • 24
  • 76
  • 113
2
votes
1 answer

I want to make SMS AutoReply use J2ME programs

I want to make SMS AutoReply use J2ME programs. I have method SendSMS(), I wish if I get a text message comes in, then the message before I set the SMS will be sent to the sender without having to click any button. How to activate the Reply button…
2
votes
1 answer

MIDP: Get or track the currently focused Item

I'm adding in some functionality to a MIDP-based app which requires me to track whether or not an Item has focus. I'm only really concerned with field-style Items and need to determine when the user has finished inputting data into the Item. I'm…
vaughandroid
  • 4,315
  • 1
  • 27
  • 33
2
votes
0 answers

Getting Nokia mobile hanged when form having choicegroup with POPUP style and Three TextField After select POPUP

I am developing an J2ME application having choicegroup with POPUP style and Three TextField . When I was tested my application on Nokia X2-01 device I found following issue regarding choicegroup POPUP Issue :- When I pressed OK key (Center Key) to…
2
votes
1 answer

How to create multiple checkbox in canvas

I get trouble when I try to create a check box in canvas. My checkbox works well but I don't know how to store value of each item, that mean when user check row 1 , and then they move to another row check box still check row 1, and when user check…
MYE
  • 983
  • 8
  • 24
  • 41
2
votes
2 answers

Listing all records j2me

I want to list all records in the record store. I've declared a list: Private List tlist = new List("Select One", List.IMPLICIT); Also enumerated the records: Form mainf; Command exit = new Command("Exit", Command.EXIT, 0); RecordEnumeration re =…
user1017243
  • 177
  • 1
  • 2
  • 8
1 2
3
17 18