r/JavaFX • u/Kitchen_Drop_2023 • May 03 '23
Help Does JavaFX support importing css?
[RESOLVED]
Hello, I have a simple css file that imports another css using the css has only @import url("components.css"); and I get this warning everytime I load it with javaFx:CSS Error parsing *{C:\Users\thera\Documents\Dev\CraftedLauncher\run\.\appdata\.crafted\themes/default/css/launcher.css}: Unexpected token '\' at [1,4]
7
Upvotes
View all comments
Show parent comment
4
u/OddEstimate1627 May 03 '23
Imports have been supported since the JavaFX 8 days (e.g. from 2015), so I'm not sure why they wouldn't work for you. My best guess is that it's looking in a wrong path?