I want to display a certain image in javaFX so I am creating it in the FXML file to manipulate it later on in controller.java file but I keep getting errors after errors. this is the lastest one
Caused by: javafx.fxml.LoadException: Attributes are not supported for writable property elements.
/C:/Users/ASUS/eclipse-workspace/sample/bin/sample/sample.fxml:263
at sample.Main.start(Main.java:12)
Exception running application sample.Main
this is the simple code i wrote:
<ImageView fx:id="imageView" fitHeight="150.0" fitWidth="200.0" layoutX="61.0" layoutY="83.0" pickOnBounds="true" preserveRatio="true" >
<image url="file:///C:/Users/ASUS/Desktop/projet/logo.png" backgroundLoading="true"/>
</ImageView>