简体   繁体   English

java.awt.Window的全屏问题

[英]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.

相关问题 在Ubuntu上将全屏设置为java.awt.Window - Setting the full screen to a java.awt.Window on Ubuntu 如何重绘java.awt.Window? - How to repaint a java.awt.Window? Java“ java.awt.Window”数组在位置0添加项目 - Java “java.awt.Window” Array add Item at position 0 如何在java.awt.Window屏幕上侦听变化? 使用setFullScreenWindow()时是否有办法将焦点放在其他Windows /程序上? - How to listen for a change in java.awt.Window screen? Is there a way to give focus to other windows/programs whilst using setFullScreenWindow()? 在Swing应用程序启动期间,首次调用JFrame构造函数需要很长时间(因为java.awt.Window()) - First call to JFrame constructor takes a long time during Swing application startup (because of java.awt.Window()) 你为什么要处理一个超出范围的java.awt.Window? - Why should you have to dispose() a java.awt.Window that goes out of scope? Java(Awt)中的全屏窗口事件在哪里? - Where is the full-screen window event in Java (Awt)? 调整窗口大小时Java AWT小程序白屏 - Java AWT applet white screen when resizing window Java AWT窗口未显示 - Java AWT Window not shown 除了使用 java.awt 机器人 class 之外,如何在 Selenium/Java 中退出全屏(Chrome)? - How to exit full screen (Chrome) in Selenium/Java other than using java.awt Robot class?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM