Java swing应用程序无法通过VNC正确呈现 [英] Java swing applications not rendering properly with VNC
问题描述
在使用Java 8的VNC桌面上启动时,Swing应用程序显示一个空白窗口.JRE 7
我没有这个问题,并且非摆动应用程序(例如Eclipse)在相同设置下也可以正常运行.
Swing applications show a blank window when launched on a VNC desktop with Java 8. I don't have this problem with JRE 7
and non-swing applications (eg. Eclipse) runs properly with the same settings.
是否存在某种默认设置,例如3D加速或在JRE 8
上默认启用的设置?我如何禁用它?
Are there some sort of default settings like 3D acceleration or something that have been enabled by default on JRE 8
? How does i disable it ?
推荐答案
在Linux系统上,我发现使用-Dsun.java2d.xrender=false
选项可以解决该问题.我认为xrender现在默认在Java 8上启用.
On a Linux system, I've found that using the -Dsun.java2d.xrender=false
option solved the issue. I think that xrender is now enabled by default on Java 8.
可在此处找到Java 2D的系统属性: http://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html
System Properties for Java 2D can be found here : http://docs.oracle.com/javase/8/docs/technotes/guides/2d/flags.html
这篇关于Java swing应用程序无法通过VNC正确呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!