0

Preview showed by scenebuilder is here

#minimize_Button{
    -fx-background-image: url("images/minimize.png");
}

the error is get when i run the program: Apr 18, 2021 11:41:36 PM com.sun.javafx.css.StyleManager$ImageCache getCachedImage
WARNING: Error loading image: file:/D:/Projects/IntelliJ/Java/EncryptionFX/out/production/JavaFxApplication/com/hacktivist/menuGUI/images/minimize.png
Apr 18, 2021 11:41:36 PM com.sun.javafx.css.StyleManager$ImageCache getCachedImage
WARNING: Error loading image: file:/D:/Projects/IntelliJ/Java/EncryptionFX/out/production/JavaFxApplication/com/hacktivist/menuGUI/images/minimize.png

Sometimes by changing images it get fixed but in this case i have tried 3 different pics but result is the same

  • Edit your question and show the file tree of your source code, including resources. Does your program actually have a com/hacktivist/menuGUI/images/minimize.png resource? – VGR Apr 18 '21 at 19:47
  • It would be helpful to show more of your HTML and css than the snippet you have provided. – Narrim Apr 19 '21 at 01:52
  • it got fixed i just had to tick the cache checkbox on the properties of button from SceneBuilder (which i was applying the background image to) and it didn't give any error then – Saim Hafeez Apr 19 '21 at 14:59

0 Answers0