更新 CSS 样式表而不重新编译 JavaFX 2 项目
这里链接 我发现“使用 JavaFX CSS 为您的 UI 换肤,只需更改所使用的样式表,您就可以将图 1 中所示的 UI 更改为图 2 中所示的 UI。”,但是编译我的项目后,我在 dist 中找不到任何 css 文件文件夹。
所以我的问题:是否可以在不重新编译应用程序的情况下更改样式?如何做到?
Here link
I found that "Skinning your UI with JavaFX CSS enables you to change the UI shown in Figure 1 to the UI shown in Figure 2 just by changing the style sheet used.", but after compiling my project I cannot find any css files in dist folder.
So my question: is it possible to change style without recompiling app and how can it be done?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
还有以下选项:
将 css 文件放在 Web 服务器上并使用如下链接:
或
向设计人员解释如何使用 jdk 中的任何存档管理器或 jar 实用程序更新 css 文件:
There are next options:
Put css files on web server and use links like:
or
Explain to designers how to update css files using any archive manager or jar utility from jdk: