在 LWUIT 应用程序中获取 Canvas
我尝试为我的应用程序 (LWUIT) 设置 fullScreenMode(false)
。但无法获取Canvas。
1种方式: com.nokia.mid.ui.LCDUIUtil.setObjectTrait(javax.microedition.lcdui.Display.getDisplay(this).getCurrent(), "nokia.ui.canvas.status_zone", Boolean.FALSE);两种
方式: javax.microedition.lcdui.Display.getDisplay(this).getCurrent().setFullScreenMode(false);
但我有错误。 getCurrent() 方法返回 Displayable 类,该类没有 setFullScreenMode()
方法。
我还尝试了 javax.microedition.lcdui.Canvas)javax.microedition.lcdui.Display.getDisplay(this).getCurrent() 但它返回 null。
有什么方法可以解决这个问题呢?
I tried set fullScreenMode(false)
for my app (LWUIT). But can not get Canvas.
1 way: com.nokia.mid.ui.LCDUIUtil.setObjectTrait(javax.microedition.lcdui.Display.getDisplay(this).getCurrent(), "nokia.ui.canvas.status_zone", Boolean.FALSE);
2 way: javax.microedition.lcdui.Display.getDisplay(this).getCurrent().setFullScreenMode(false);
But I have error. Method getCurrent() return class Displayable which don't have method setFullScreenMode()
.
Also I tried javax.microedition.lcdui.Canvas)javax.microedition.lcdui.Display.getDisplay(this).getCurrent()
but it return null.
What is way for resolved this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最后一种方法是正确的,您需要在调用
form.show()
后使用它才能实际工作。The last way is correct, you need to use it AFTER invoking
form.show()
for it to actually work.