java.awt.Window 的全屏问题

发布于 2024-12-16 22:43:55 字数 200 浏览 5 评论 0原文

我使用 java.awt.Window 开发了一个 J2ME 应用程序,因为我想要一个全屏,顶部没有任何状态栏和标题栏。

我面临的问题是:第一个屏幕以全屏显示,但从那时起,所有显示的屏幕都会在屏幕底部出现白色条带。
我已经使用了 setBounds(0,0,320,240) (我的设备尺寸),但问题仍然存在。

I have developed a J2ME app using java.awt.Window as I want a full screen without any status and title bars on top.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

演多会厌 2024-12-23 22:43:55

由于没有人回答这个问题。我想告诉一下我是如何解决这个问题的。在netbeans中设计框架时,我指定了
setbounds(0,0,345,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);
I know it is kind of a patch and not a solution, but that worked.. and it looks good on the device :)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文