Help Center

Local Navigation

Create a text field for AutoText

If a text field supports AutoText, when users press the Space key twice, the BlackBerry® device inserts a period, capitalizes the next letter after a period, and replaces words as defined in the AutoText application.
  1. Import the following classes:
    • net.rim.device.api.ui.component.AutoTextEditField
    • net.rim.device.api.ui.autotext.AutoText
    • net.rim.device.api.ui.component.BasicEditField
  2. Create an instance of an AutoTextEditField.
    AutoTextEditField autoT = new AutoTextEditField("AutoTextEditField: ", "");
Next topic: Create a date field

Was this information helpful? Send us your comments.