• 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

MIDP: Difference between textfield and textbox

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm new to MIDP and I'm currently building test app in PDA to see how it works.

May I know the difference between textfield and textbox besides the fact that textfield can be placed with other components in a form?

If I were to create a display with only a textfield, is "creating a textbox and set it to display" equivalent to "creating a textfield, add to form, set form to display"?

Thanks.
 
Ranch Hand
Posts: 904
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

-- deleted --

As the following posters mention, my explaination was completely wrong.

I don't know what I was thinking about this morning.. it definitly wasn't
Java.

/Svend Rost
[ September 05, 2005: Message edited by: Svend Rost ]
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think Svend is wrong.

TextField and TextBox are both used for text input and even share the same text input constraints.

The difference is that:
- a TextBox can be set as the Displayable using Display.setCurrent()
TextBox extends Screen which in turn extends Displayable.
- TextField can only be used within a Form object
TextField extends Item and Item is the base class for items in a Form.
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think Svend may have confused TextField with StringItem.

StringItem is meant for static text labels, though also an Item, thus can only be displayed within a Form.
 
Choon-Chern Lim
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the response... I think I got the grip on how this textfield and textbox work.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic