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

Perform double buffering using the BlackBerry UI

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

Summary

 

This article applies to the following:

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

Description

 

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.

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