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

Create a ListField with check boxes

by Retired ‎02-12-2010 04:16 PM - edited ‎09-16-2010 02:26 PM (4,134 Views)



This article applies to BlackBerry® wireless devices based on Java™.




The default implementation of a ListField on a BlackBerry device will display text in a number of selectable rows. It is possible to expand on this behaviour and allow an application to add a series of check boxes to the list. This can provide a visual indication to the user of rows that have some significance to the application. In the attached sample application, check boxes are added to the left side of a ListField. The boxes can be checked and unchecked by highlighting the appropriate row and by either pressing the SPACEBAR or selecting Change Option from the menu. Here is a screenshot of what the list looks like with the first row highlighted on a BlackBerry 7290 Wireless Handheld™ with BlackBerry Device Software 4.1.















To download the source code of this application, see the CheckboxListField.zip file

Users Online
Currently online: 27 members 2,489 guests
Please welcome our newest community members: