Windows 7上的JavaFX奇怪渲染 [英] JavaFX strange rendering on Windows 7

查看:545
本文介绍了Windows 7上的JavaFX奇怪渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用JavaFX并遇到了障碍。当我打开SceneBuilder时,渲染非常奇怪。当窗口恢复时,它似乎放大了,当最大化时它看起来更好,但仍然不太好,无法操作。
我创建的HelloWorld示例以及我在互联网上找到的示例也是如此,所以我认为这是系统性的。我尝试过使用Java 7u71和Java 8u25。没变。如果您知道如何解决此问题,请提供帮助。

I have just started working with JavaFX and have come to an obstacle. When I open SceneBuilder it renders very strangely. When the window is restored it seems zoomed in, and when maximized it looks better, but still not quite OK and inoperable. The same goes for HelloWorld example that I created, and examples I found on internet, so I think it is something systemic. I have tried with Java 7u71 and with Java 8u25. No change. Please help if you know how to fix this.

推荐答案

阅读系统要求后( http://www.oracle.com/technetwork/java/javafx/downloads/supportedconfigurations-1506746.html )我遇到过这一行:

After reading system requirements (http://www.oracle.com/technetwork/java/javafx/downloads/supportedconfigurations-1506746.html) I came across this line:


为避免在Windows平台上出现渲染问题,请将ATI驱动程序升级到Catalyst 11.09或更高版本。

To avoid rendering issues on Windows platforms, upgrade the ATI driver to Catalyst 11.09 or later.

如果您有一台旧笔记本电脑(使用ATI FireGL V5200和ATI驱动程序8.561.0.0),请尝试禁用HWA。我是通过在Windows环境变量中设置JAVA_TOOL_OPTIONS来实现的。请参阅答案:如何在JavaFX中禁用或绕过硬件图形加速(Prism)

If you have a old laptop like I do (with ATI FireGL V5200 and ATI driver 8.561.0.0), try to disable HWA. I did this by setting JAVA_TOOL_OPTIONS in Windows Environment variables. See answer: How to disable or bypass Hardware Graphics Acceleration(Prism) in JavaFX


对于Java 7 :JAVA_TOOL_OPTIONS = -Dprism.order = j2d

For Java 7: JAVA_TOOL_OPTIONS=-Dprism.order=j2d

对于Java 8:JAVA_TOOL_OPTIONS = -Dprism.order = sw

For Java 8: JAVA_TOOL_OPTIONS=-Dprism.order=sw

这篇关于Windows 7上的JavaFX奇怪渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆