This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!
  • 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • Al Hobbs
  • salvin francis

List and Textfield on same form?

Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm a J2ME newbie looking for advice. I'm trying to create a form on a MIDP 1.0 phone that requires a textfield and a list. The user will type some text into the textfield and then click a command button. The value is stored in RMS and added to a list on the screen below the textfield. Later the user will come back to this screen and the stored list will be displayed. Then each time the user types in one of the values off the list, the item is removed from RMS and removed from the list on the screen. Think of it as adding and removing items from an inventory. I could just append text to the screen, but removing them later is beyond me. Thanks in advance. Todd
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only way I know is to use another GUI toolkit, because in MIDP 1.0 you cannot put a List on a Form. You can try the Nextel Open Windowing Toolkit. Have in mind that the toolkit will add significantly to your code size.

You could also simulate a list using StringItem components, but I haven't tried this myself and I am not sure whether it will really work.

Some Motorola phones come with an additional GUI library, LWT, which is very similar to Nextel's OWT.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic