title: Why ListView displays Objects addresses instead of contents?
body: <p>I have a <code>ListView</code> and a class named <code>Participant</code>.I want to display the content of objects as items in this <code>ListView</code>, but it appears addresses in listView :<a href="https://i.stack.imgur.com/vKXTK.png" rel="nofollow noreferrer">photo</a>.</p>
  
  <p>This is my code where I populate my ListView. How can I fix this?</p>
  
  <pre><code>package view_FXML;
  
  import Model.Curse;
  import Model.Participant;
  import Service.GeneralService;
  
  import javafx.collections.FXCollections;
  import javafx.collections.ObservableList;
  import javafx.fxml.FXML;
  import javafx.scene.control.ListView;
  import javafx.scene.control.cell.ComboBoxListCell;
  import javafx.scene.control.cell.PropertyValueFactory;
  
  public class SearchViewController {
      @FXML
      private ListView&lt;Participant&gt; listView;
  
  private GeneralService service;
  private ObservableList&lt;Participant&gt; model;
  
  public void setService(GeneralService service){
      this.service=service;
      //this.model= FXCollections.observableArrayList(service.vizualizareParticipanti());
      Participant  p = new Participant(1,"Laszlo",1,100,2);
      Participant p2 = new Participant(2,"John",2,123,100);
      this.model= FXCollections.observableArrayList(p,p2);
      listView.setItems(model);
  }
   // public void initialize(){
   // }
  }
  </code></pre>