Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make actual contents of the textField different than displayed

 
George Jones
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Under the constraints section of the J2ME Class TextField API, it says:

"The actual contents of the text object are set and modified by and are reported to the application through the TextBox and TextField APIs. The displayed contents may differ from the actual contents if the implementation has chosen to provide special formatting suitable for the text object's constraint setting. "

How would you do this in implementation? I am looking to have the input to the textField be NUMERIC only, but I would like to display some characters that are rejected by the NUMERIC constraint. Thanks
 
Aleksandar Babic
Ranch Hand
Posts: 68
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic