Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

j2me - How to create a master-details UI

 
Edward Salvatierra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:



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.
 
Kondwani Chipeta
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Edward,

LWUIT has a table package with classes that should be able to help you accomplish what you want. You can find out more here.

The LCDUI doesn't have any classes for managing tabular data and am not sure about Netbeans MIDP components.
 
Edward Salvatierra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kondwani Chipeta wrote:Hello Edward,

LWUIT has a table package with classes that should be able to help you accomplish what you want. You can find out more here.

The LCDUI doesn't have any classes for managing tabular data and am not sure about Netbeans MIDP components.

Thank you Kondwani. A getSelectedRow method sound great. The problem with this and with almost everything in j2me is the lack of information and examples.
Did you ever use getSelectedRow ?? Do you think you could give me an example of how to use this method?? So far this is the most "complete" example I have found regarding tables in LWUIT :S



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic