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

Reply
Developer
Posts: 107
Registered: ‎08-08-2008
My Device: Not Specified

Re draw or paint a screen with graphics

I have a screen with a custom FlowFieldManage that I place controls and graphics in.

It seems to work fine on 8100, 8800 but on the 9000 the screen does not paint until I move the cursor with the mouse or trackball.

 

I push the screen using this on the 8100 and 8800 and the screen is visible immidiately:

 

 try
{   UiApplication.getUiApplication().pushScreen(new AboutScreen()); }
    catch( Exception e) { System.out.println(e); }         

 

how to force a repaint of the screen on 9000?

BlackBerry Development Advisor
Posts: 15,021
Registered: ‎07-09-2008
My Device: BlackBerry Passport

Re: Re draw or paint a screen with graphics

You can call Screen.invalidate to force a repaint of the screen.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 107
Registered: ‎08-08-2008
My Device: Not Specified

Re: Re draw or paint a screen with graphics

Mark,

 

thanks for the suggestion but I found the problem with my coding. I had a field manager that drew edit field over graphics with color and font changes and outside the manager i had a label field that i was also changing the font size and color and for some reason the 8100 and 8800 didn't complain but the 9000 threw a fit so i recoded everything and its working fine.