开发者

Alert not displaying properly in JavaME

any ideas why the Alert dialog in Jav开发者_如何学Ca ME application is not displaying properly (white stripe on a top of it) on a real phone (N82), it works well on an emulator. So it is not a matter of coding I suppose. See screenshots:

Alert not displaying properly in JavaME

-> N82

Alert not displaying properly in JavaME

-> Emulator

any ideas why?


Alerts and other Gui components are device's impementation depended. That means these GUI objects are "native" GUI. You can solve this issue by creating your own GUI over Canvas, like J4ME, J2MEPolish and LWUIT.


What you describe is most likely a bug in N82.

Think of it - lcdui Alert API does not allow developer anything that would anyhow be related to "pixel rendering" artifacts like shown at your screen shot. Only things application developer can impact in Alert are like text of the title and alert, timeout value, stuff like that - and judging by your emulator screen shot, it looks like your code does its part right (although one can't be 100% sure about that since you didn't show the snippet of the code you use).

The whole point of high level API provided in Screen objects like Alert is that rendering is expected to be done by implementation. Because of that, whenever you notice rendering artifacts at high level screens you use, the most reasonable explanation would be the bug in the way how MIDP is implemented at particular device.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜