Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

List and Textfield on same form?

 
Greenhorn
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.

Yuri
reply
    Bookmark Topic Watch Topic
  • New Topic