将AnchorPanes添加到ScrollPanes Javafx 8 [英] Adding AnchorPanes to ScrollPanes Javafx 8

查看:214
本文介绍了将AnchorPanes添加到ScrollPanes Javafx 8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在JavaFX中,当我向ScrollPane中添加一个内置Label的AnchorPane时,整个AnchorPane有点模糊,好像它有一个Photoshop羽毛效果。我正在使用Java8最新版本。 Java7不是这种情况。
你以前遇到过这个问题吗?

解决方案

我在java 8升级后遇到了类似的问题:


  1. 使用JavaFX Scene Builder,我注意到在Layout:Position下,我将布局X / Y设为非零值(如9.893739等) 。当我用0替换那些时,模糊文本就消失了。


  2. 尝试删除任何锚窗格约束。我发现奇怪的计算正在导致宽度/长度变得奇怪,导致模糊



in JavaFX, when I add an AnchorPane that has a Label inside to a ScrollPane, the whole AnchorPane comes in a tad blurry, as if it had a Photoshop-feather effect. I am using Java8 the latest release. This was not the case with Java7. Have you ran into this issue before?

解决方案

I had similar problems following a java 8 upgrade:

  1. Using JavaFX Scene Builder, I noticed that under Layout: Position, I had Layout X / Y a non zero value (like 9.893739 etc). when I replaced those with 0, the blurry text went away.

  2. Try removing any anchor pane constraints. I've found weird calculations being done that is causing the width/length to be weird fractions and causing blurriness

这篇关于将AnchorPanes添加到ScrollPanes Javafx 8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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