title: ListView with Images JavaFX
body: <p>Is there any possibility to have Image in ListView next to text? Images have the same name like "oddelenyObsah[]". This should work like an inventory, in listview are items which are in your inventory and i need a picture of the item next to it.</p>
  
  <pre><code>private HerniPlan plan;
  private Batoh batoh;
  ListView&lt;String&gt; list;
  ObservableList&lt;String&gt; data;
  
  private final Image boty  = new Image("../zdroje/boty.png");
  private final Image odpadky  = new Image("https://upload.wikimedia.org/wikipedia/commons/f/f1/Ruby_logo_64x64.png");
  private final Image varecka  = new Image("https://upload.wikimedia.org/wikipedia/commons/f/f1/Ruby_logo_64x64.png");
  private final Image panev  = new Image("https://upload.wikimedia.org/wikipedia/commons/f/f1/Ruby_logo_64x64.png");
  private final Image desky  = new Image("https://upload.wikimedia.org/wikipedia/commons/f/f1/Ruby_logo_64x64.png");
  private final Image nuzky  = new Image("https://upload.wikimedia.org/wikipedia/commons/f/f1/Ruby_logo_64x64.png");
  private final Image pacidlo  = new Image("https://upload.wikimedia.org/wikipedia/commons/f/f1/Ruby_logo_64x64.png");
  private final Image rezavy_klic  = new Image("https://upload.wikimedia.org/wikipedia/commons/f/f1/Ruby_logo_64x64.png");
  private final Image klic_od_domu  = new Image("https://upload.wikimedia.org/wikipedia/commons/f/f1/Ruby_logo_64x64.png");
  
  private Image[] listOfImages = {boty, odpadky, varecka, panev, desky, nuzky, pacidlo, rezavy_klic, klic_od_domu};
  
  public PanelBatohu(Batoh batoh) {
      this.batoh = batoh;
      batoh.zaregistrujPozorovateleBatohu(this);
      init();
  }
  
  private void init() {
      list = new ListView&lt;&gt;();
      data = FXCollections.observableArrayList();
      list.setItems(data);
      list.setPrefWidth(200);
      aktualizujBatoh();
  }
  
  public ListView&lt;String&gt; getList() {
      return list;
  }
  
  @Override
  public void aktualizujBatoh() {
      String veci = batoh.seznamVBatohu();
      data.clear();
      String[] oddelenyObsah = veci.split(" ");
      for (int i = 1; i &lt; oddelenyObsah.length; i++) {          
          if(veci.equals(boty)){
  
          }
          data.add(oddelenyObsah[i]);           
      }
  }
  
   /**
   * Metoda zaregistruje pozorovatele k hernímu plánu při spuštění nové hry.
   *
   * @param batoh
   */
  public void nastaveniHernihoPlanu(Batoh batoh) {
      this.batoh = batoh;
      batoh.zaregistrujPozorovateleBatohu(this);
      this.aktualizujBatoh();
  }
  </code></pre>
  
  <p>}</p>