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

Create a custom width for a ListField

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

Summary

 

This article applies to the following:

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

Procedure

 

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)
{
super.layout(width,height);
setExtent(50, 100);
}
};

 


Additional Information

 

Contributors
Users Online
Currently online: 4 members 1,416 guests
Recent signins:
Please welcome our newest community members: