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

Perform double buffering using the BlackBerry UI

by Retired ‎02-16-2010 01:32 PM - edited ‎09-16-2010 02:45 PM (3,206 Views)



This article applies to the following:

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



Although there is a need to perform explicit double buffering in Mobile Information Device Profile (MIDP) applications, the BlackBerry user interface (UI) implementation is double-buffered. This means there is no need to perform your own double buffering of UI images. Essentially, all drawing functions in net.rim.device.api.ui.Graphics objects are drawn to an off-screen bitmap by the system. When you call for a repaint of the screen, it draws this off-screen bitmap instead of sequentially painting the screen. This same drawing paradigm is true for all fields and field managers within the Blackberry UI.

Users Online
Currently online: 27 members 1,695 guests
Recent signins:
Please welcome our newest community members: