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
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
  • 61
  • 2
  • 8
3
votes
2 answers

Get pressed keys in J2ME with GameCanvas

I would like to get whether (for example) the 3 key is pressed (KEY_NUM3). I have tried getKeyStates but it only detects the game action keys. How could I get the states of non-game action keys? (I have overridden the keyPressed and keyReleased…
user
  • 6,567
  • 18
  • 58
  • 85
3
votes
1 answer

Issues in image transformation in j2me

I'm developing a game in j2me. I don't need sprites for this game, I'm painting images directly. The method which I'm following to flip an image is as follows. But on device,it is shown as in fig 1.1. How to resolve this problem.? Please…
user1554336
3
votes
1 answer

How to get Hashtable values and show in listview in another screen using J2me MIDlet

I am developing a Application in J2Me for Nokia Device. I have created menu list and added ClickEvents(CommandEvent), my problem is how to get hashtable data one by One in Display like listview in another screen by clickEvent.
rkasula
  • 74
  • 7
3
votes
1 answer

Text Wrap in J2ME

I am working on a small J2ME project and i need to wrap text displayed on a form as it extends beyond view. I am using the Nokia IDE This is my code below: aboutScreen.append(new StringItem("QY is a simplified web application that enables people all…
Ogugua Belonwu
  • 2,111
  • 6
  • 28
  • 45
3
votes
2 answers

How to switch Display between different classes in Java ME

I am developing a Java ME program. The different forms are located in separate classes. I tried to switch display between main MIDlet and a class and succeeded. How to do the same between two classes? I am just a beginner in Java ME.
Sabin Jose
  • 658
  • 9
  • 19
3
votes
3 answers

How to lock the landscape mode in j2me app?

I want to show my app only in portrait mode. I have to restrict the landscape mode in my app. There are separate attributes for each devices. For Nokia, Nokia-MIDlet-App-Orientation : Portrait. For Samsung, MIDlet-ScreenMode : Portrait. After adding…
Kalai Selvan Ravi
  • 2,846
  • 2
  • 16
  • 28
3
votes
1 answer

How I can use LCDUI from LWUIT app?

I want to use standard alerts dialog (as LCDUI) in my LWUIT app: lcdui Alert javadocs How can I call this methods from LWUIT form?
Tim
  • 1,606
  • 2
  • 20
  • 32
3
votes
1 answer

Cannot open website link in J2ME

I am working on a simple J2ME application and i have a StringItem linked to a terms and conditions page online. I have the StringItem setup and it appears underlined (giving the feeling that it is linked); but when i click on it, it does not…
Ogugua Belonwu
  • 2,111
  • 6
  • 28
  • 45
3
votes
1 answer

Confused with command listeners and new forms J2ME

EDIT: I believe I need help getting the selected element in the list I just managed for it to display a new form but I'm having a lot of trouble finding code that workswith source 3.0. I've been trying to make a application that allows a user to…
Skeng
  • 147
  • 3
  • 11
3
votes
2 answers

(J2ME) get the reference of the MIDlet from some other class?

I am trying to make a class that can set what is on the screen (Like set a Form to the Display, what ever.) outside the midlet (Main) class So I thought I have to enter and change the Main's variable display, but I went to an error. Here's the…
SmRndGuy
  • 1,719
  • 5
  • 30
  • 49
3
votes
1 answer

NullPointerException trying to add 2 Displayables in one mobile App

I am just trying to figure out the logic of why I have an error. I'm trying to add 2 displays in 1 for the first time and switching the views using the commandListener. I thought logically I did everything right but I'm getting a null pointer…
Addy75
  • 167
  • 2
  • 10
2
votes
1 answer

Custom gauge in J2ME

I require some direction to incorporate gauge in J2ME which allows me to configure its minimum and maximum value, labels etc. Currently, this is my gauge code: levelGauge = new Gauge("Level", true, 12, valX - 16); I am setting the maximum value as…
Viraj
  • 1,880
  • 22
  • 31
2
votes
3 answers

J2ME TextBox not editable

Is there any way to get a TextBox in j2me not editable? Because I want to fill a lot of lines but I don't want the user to edit it.
Maximiliano Poggio
  • 1,162
  • 10
  • 23
2
votes
0 answers

handle text html in j2me

I tried to make application RSS news, and it can give detail news to user. When I go to detail, the body text is show the html tag. This is picture of my application: I don't want to show html tags. This is my code to show detail…
pensilhijau
  • 193
  • 3
  • 4
  • 17
1
2
3
17 18