• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

j2me - How to create a master-details UI

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



 
And then the flying monkeys attacked. My only defense was this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic