issue on displaying images added into .css file in javafx native package

hizAssuth

New Member
Javafx native package do not display any images added into the .css fileAs i am using an .css file which is located into my project "/styles/style.css"where i am givng an scene to get the style by,\[code\]Scene scene = new Scene(parent, 1080, 800);scene.getStylesheets().add("/styles/style.css");\[/code\]To set an image into css I have tried into two ways:\[code\]-fx-graphic: url("../images/delete_hover.png") no-repeat;\[/code\]AND\[code\]-fx-background-image:url("../images/bgLeft.jpg");\[/code\]but i do not worked it out.where I am getting the color or fonts set into the css file but not imagesCan please suggest ...
 
Top