Saturday, May 14, 2011

Blackberry RichTextField Example

How to use Blackberry RichTextField.



 //create a new RichTextField
 RichTextField rtf = new RichTextField();
 add(rtf);

 //create a new RichTextField with a style, in this case "non focusable"
 RichTextField rtf2 = new RichTextField(NON_FOCUSABLE);
 add(rtf2);

 //create a new RichTextField with default text
 RichTextField rtf3 = new RichTextField("Hello World!");
 add(rtf3);

Download Project Source

No comments:

Post a Comment