[英]Full screen issue with java.awt.Window
I have developed a J2ME app using java.awt.Window
as I want a full screen without any status and title bars on top. 我已经开发了一个使用java.awt.Window
的J2ME应用程序,因为我希望全屏显示而顶部没有任何状态和标题栏。
The problem I am facing is: the first screen is displayed in full screen but from then on all the screens displayed have a white strip appearing at the bottom of the screen. 我面临的问题是:第一个屏幕以全屏显示,但是从那时起,在所有显示的屏幕上,屏幕底部都会出现一条白条。
I have used setBounds(0,0,320,240)
(my device dimensions) but the problem still remains. 我使用过setBounds(0,0,320,240)
(我的设备尺寸),但问题仍然存在。
Since no one has answered this.I would like to tell how I fixed this.When designing the frame in netbeans, I specified the coordinates of setbounds(0,0,345,240); 由于没有人回答这个问题。我想告诉我如何解决这个问题。在netbeans中设计框架时,我指定了setbounds(0,0,345,240)的坐标; I know it is kind of a patch and not a solution, but that worked.. and it looks good on the device :) 我知道这只是一个补丁,而不是解决方案,但确实有效。.而且在设备上看起来不错:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.