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

Posts: 237
Registered: ‎05-07-2010
My Device: 8520
My Carrier: Internet

can anyone help me for screen repainting?



i have flag in mainscreen class.


when true the diffrent uimethod call and when false diff  ui method called.


my problem is that when flag is false the screen doesnt update and the oldscreen is shown.


how can i update the screen.

please press kudos(star button on left) if this post is helpful to you
"Accept as solution" if your query has been resolved.@hitendra
New Contributor
Posts: 3
Registered: ‎06-01-2010
My Device: 9700 Bold
My Carrier: ATT

Re: can anyone help me for screen repainting?

You can try


Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: can anyone help me for screen repainting?

Dont really understand your question but if you are trying to paint the screen two different ways based on a variable, you can create two methods and have paint call the correct one or just use an if statement and code both directly in paint.