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

Trusted Contributor
Posts: 200
Registered: ‎02-22-2010
My Device: BlackBerry 9550
My Carrier: Airtel

Re: bitmap erases as i scroll in listfield and doesnt repaints

i got the solution. i just overrided the drawFocus method as below:


protected void drawFocus(Graphics graphics, boolean on)
		super.drawFocus(graphics, on);
		invalidateAll(0, 0,Display.getWidth(), Display.getHeight());

 and all the images got displayed and when i scrolled the images it remain as it is...

Swapnil G.