Search code examples
java-memidplcdui

How to make grid view in j2me


I am very new in j2me. I want to design following type layout and components.

enter image description here

Mean I want to arrange my items in gridview. And after clicking on each item I will move to another form.

I am using simple lcdui. Please suggest me how can I do this. Means how can I arrange these items in gridview and what items should I use here buttons or something else.

You may provide me some suitable links.


Solution

  • In J2ME you have two options for UI: Form and Canvas.
    Forms are a very simple way to display information without dealing with the graphical side of things, where Canvas is a blank screen and you need to draw the objects and their behaviors.

    There is a third way: the guys at Sun has created a framework called (LWUIT which stands for Light Weight UI Toolkit). This toolkit provides the simplicity of Forms and the UI control of Canvas.

    Hope i helped.