java - JavaFX SceneBuilder ImageView not working -


i need create gui scenebuilder. added imageview interface , set path image correctly. image showing inside scenebuilder, when run application, image not there.

i put image inside "img/placeholder.png", , directly root directory. doesn't matter put it, isn't working.

the path gui.fxml file:

/src/gui/gui.fxml 

the path image file:

/placeholder.png 

can me please?

another solution in particular context (maven related) given /src/main/resources/foo/gui.fxml , /src/main/resources/foo/img/foo.png, if create image view in scenebuilder , set image foo.png, url reads @img/foo.png. unfortunately image not show in application. if change image url @/foo/img/foo.png image won't show anymore in scenebuilder show in application.

scenebuilder 8.2.0, jdk 1.8, intellj idea 2016.1


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -