关闭

getHeight() on Sharp V902

标签: commandthreadjvm
410人阅读 评论(0) 收藏 举报
分类:

 As we all know Sharp V902 is MIDP20, 240x260 pixels with command bar and 240x294 pixels in full screen mode.

The interesting thing is you will get 260, not 294, when you call getHeight() as soon as you call setFullScreenMode(true). The truth is you would get the real value of the screen height just when you call getHeight() in another thread that is different with that calls setFullScreenMode(true), of cause after it calls.

In my opinion, the JVM on Sharp V902 to implement it uses the same policy with the implement of java.swing.SwingUtilities.invokeLater(Runnable).

Btw, it still occurs on Moto V975.

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:66655次
    • 积分:893
    • 等级:
    • 排名:千里之外
    • 原创:10篇
    • 转载:27篇
    • 译文:0篇
    • 评论:67条
    文章分类
    最新评论