j2me - How to create a master-details UI
Asked Answered
A

1

1

I'm stuck in the middle of j2me project because I have no idea how to do something that would be easily done in other platforms, but that doesn't seem to have a direct solution in java me/j2me.

What I need to do is this (it doesn't matter if it is with Netbeans MIDP components, LWUIT or plain lcdui)

I have to display a list of customers (read from a web service) in some sort of table, and when the user navigates up or down the rows, a "Details" command must be shown so that the user can see the details for that specific customer. Something like this image:

enter image description here

I know I can always use a List, but the problem is that Lists only allow a single "cell" per item, which is not very visually attractive as a table.

As always any help will be GREATLY appreciated.

Thank in advance.

Aman answered 9/6, 2014 at 13:7 Comment(0)
A
1

as i see it you have 2 options (i use LWUIT)

  1. either allow the user to click the cell thah the chose in the list and move to another screen where the details is shown. i do exactly the same in my project.

  2. add the "details" command as you did here, and when the user will click the left button for the command in the actionPerformed method you will check which cell is chosen and switch to the details screen

i think the second option is less intuitive for the user, just let him click and choose the right row

Aestival answered 11/6, 2014 at 14:18 Comment(2)
Thank you @arseny.I'm thinking in giving LWUIT a go, but the problem is the lack of documentation and examples.Do you think you could give me a example or perhaps some links you used when you were learning java-me. Something that you think it would help me get what I trying to do.Aman
lack of documentation is a common problem in J2ME as a whole because it is old technology and rarely used today two resources about LWUIT lwuit.blogspot.co.il java.net/projects/lwuit/sources/svn/content/trunk/docs/…Aestival

© 2022 - 2024 — McMap. All rights reserved.