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 custom width for a ListField

by Retired ‎02-12-2010 04:06 PM - edited ‎09-16-2010 02:49 PM (1,163 Views)



This article applies to the following:

  • BlackBerry® Java Development Environment (JDE)
  • BlackBerry Wireless Handhelds™ based on Java™



The section of code below can be used to create a custom width for a ListField:



private ListField myList;

myList = new ListField() {
public void layout(int width, int height)
setExtent(50, 100);


Additional Information


Users Online
Currently online: 27 members 1,391 guests
Please welcome our newest community members: