Styling button in javaFX using CSS

蓝咒 提交于 2019-12-06 10:16:20

To solve my problem , I changed the directory of .css file from Desktop to src\sample using JavaFX Scene Builder.

There is no problem with your css file. Main reason is that the CSS.css file is not linked properly with your project so Now put the CSS.css file in the directory of your project and try again. You can learn more at JavaFX CSS BUtton

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!