issue on displaying images added into .css file in javafx native package -
javafx native package not display images added .css file
as using .css file located project "/styles/style.css" givng scene style by,
scene scene = new scene(parent, 1080, 800); scene.getstylesheets().add("/styles/style.css");
to set image css have tried 2 ways:
-fx-graphic: url("../images/delete_hover.png") no-repeat;
and
-fx-background-image:url("../images/bgleft.jpg");
but not worked out.
where getting color or fonts set css file not images can please suggest ...
unzipped jar notice style.css convert style.bss i.e binary format.
just make css conversion bss false while building package i.e in pom.xml
<css2bin>false </css2bin>
this solved problem :)
Comments
Post a Comment