Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Trusted Contributor
Posts: 236
Registered: ‎07-28-2010
My Device: Not Specified
My Carrier: Software Developer

How to Use List field

Hi All, I am developing an application for that i want to display my String data in list field but i am not getting how to pass an String in a listfield. Thanks to All
Trusted Contributor
Posts: 144
Registered: ‎05-04-2011
My Device: blackberry mobiles
My Carrier: app development
Developer
Posts: 208
Registered: ‎08-04-2009
My Device: Not Specified

Re: How to Use List field

To use a list field, you need to create a list field class object by calling new ListField(), then you need to set height and no of rows of the list. After then you can set ListfieldCallback on the list field object, ListFieldCallback is an interface, which have method to handle list object and representation of the list items.