FXML code - 

```
<TreeItem expanded="true" value="1"> 
    <graphic> 
        <ImageView fx:id="folderImageView"/> 
    </graphic> 
    <children> 
        <TreeItem value="11" /> 
    </children> 
</TreeItem> 

<TreeItem expanded="true" value="2"> 
    <graphic> 
        <ImageView fx:id="folderImageView"/> 
    </graphic> 
    <children> 
        <TreeItem value="2" /> 
    </children> 
</TreeItem>

```

It's controller code - 

```
  public class LController implements Initializable { 

  @FXML ImageView folderImageView; 

  public void initialize(URL location, ResourceBundle resources) { 
      folderImageView.setImage(new Image("/resource/b.png")); 
  } 

```

image b.png is only displayed, in last TreeItem (i.e. which has value=2) 

Can you please suggest?