Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to make actual contents of the textField different than displayed  RSS feed

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
Ranch Hand
Posts: 68
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!