默认JavaFX-CSS [英] Default JavaFX-CSS

查看:154
本文介绍了默认JavaFX-CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么方法可以看到应用的JavaFX-Elements的CSS规则或者使用默认CSS规则的引用?

is there any way to see the applied CSS-Rules for JavaFX-Elements or a reference with the default CSS-Rules?

我想知道工具栏边框的颜色。

I would for example like to know the color of Toolbars border.

推荐答案

CSS文件位于javafxrt.jar的jfxrt.jar!/ com / sun / javafx / scene / control / skin / caspian / caspian.css。

The CSS file is located in javafxrt.jar at jfxrt.jar!/com/sun/javafx/scene/control/skin/caspian/caspian.css .

不幸的是,现在没有API访问元素的CSS样式,显然正在讨论JavaFX 2.2。

Unfortunately, there is no API access to the CSS styles of an element as of now, though that is apparently being discussed for JavaFX 2.2.

这篇关于默认JavaFX-CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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