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

The Custom Field is not drawing properly

by Retired ‎02-16-2010 03:43 PM - edited ‎09-16-2010 02:41 PM (962 Views)



This article applies to the following:

  • BlackBerry® wireless devices based on Java™
  • BlackBerry Java Development Environment (JDE)



Occasionally, after creating a Custom Field in an application, compiling, and building the application, the field does not appear. A possible reason for this occurrence is that setExtent(x,y) has not been called. The setExtent() method must be called within the field layout() method as it defines the extent of the field size and tells how much of the screen to repaint (the default is zero). So without this call, although there are no errors, the field is never painted.


Additional Information


For more information, please see the BlackBerry Application Developer Guide Volume 1.

Users Online
Currently online: 13 members 1,972 guests
Please welcome our newest community members: