如何在黑莓更新屏幕? [英] How to update screen in blackberry?

查看:220
本文介绍了如何在黑莓更新屏幕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序。并且我面临着与更新屏幕,这已经是stack.I一个问题,试图用myappscreen.invalidate()上按一下按钮,但它不会更新屏幕。

i am developing one app. and i am facing a problem related to updating the screen,which is already in stack.I tried to use myappscreen.invalidate() on button click,but it doesn't update screen.

请帮我解决这个问题。

推荐答案

是您的屏幕上的活动画面?

Is your screen the active screen?

要重绘活动屏幕,你应该只需要调用无效()方法来导致屏幕刷新。

To redraw the active screen, you should just need to call the invalidate() method to cause the screen to refresh.

你从哪里调用无效()?您不能调用无效()从计时器线程,除非你有一个eventlock。

Where are you calling invalidate() from? You cannot call invalidate() from a Timer thread unless you have got an eventlock.

这篇关于如何在黑莓更新屏幕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆