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
New Developer
Posts: 41
Registered: ‎11-10-2008
My Device: Not Specified
Accepted Solution

how to refresh current screen?

We're making our application multi-lingual so when the user chooses a languange we need to refresh the current screen.

 

I tried this but it seems it did'nt refresh the page. It just show the current screen before change were made.

 

Screen s = UiApplication.getUiApplication().getActiveScreen();
        pushScreen(s);

 

Is there a way to refresh the screen? Thanks.

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: how to refresh current screen?

[ Edited ]

Have you tried using invalidate?

 

Give a look ath this thread.

 

http://supportforums.blackberry.com/rim/board/message?board.id=java_dev&message.id=24553&query.id=38...

Message Edited by BBDeveloper on 08-04-2009 10:01 AM

Use Search. "Accept Solution" If the problem is resolved.
Highlighted
Developer
Posts: 696
Registered: ‎12-02-2008
My Device: Not Specified

Re: how to refresh current screen?

Hi,

 

I think you should try to change the font in the run() of MenuItem

 

For eg your lablefieldf previously had some font now set new Font for this field when you click menu button set new font by calling setFont() on that particular fields instace.

 

Hope this will solve your problem.

 

Please let me know if your problem get solved

 

Regards,
Rajat Gupta.
--------------------------------------------------------------------------------
If your problem was get solved then please mark the thread as "Accepted solution" and kudos - your wish