Developers

Local Navigation

Home > Developers > Developers Knowledge Base

Back

How To - Create a custom width for a ListField

Last Updated: 24 April 2006
Article Number: DB-00118

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


Keywords

ListField, width