title: JavaFX ComboBox displaying object not it's property
body: <p>i have built GUI with combo box. I have <code>ObservableList&lt;SimpleTableObject&gt; types</code>
  which should display types of material. It looks like this</p>
  
  <pre><code> material_comboBox_type.getItems().addAll(types);
  
      material_comboBox_type.setCellFactory((ListView&lt;SimpleTableObject&gt; 
      param) -&gt; {
            final ListCell&lt;SimpleTableObject&gt; cell = new 
       ListCell&lt;SimpleTableObject&gt;() {                
              @Override
              public void updateItem(SimpleTableObject item, boolean empty) {
                  super.updateItem(item, empty);
                  if (item != null) {
  
                      setText(item.getName().get());//return String, actuall name of material
  
                  }
                  else {
                      setText(null);
                  }
              }
          };
          return cell;
      });
  </code></pre>
  
  <p>Now the problem is this: when i click combobox, it shows names as desired. But when i select one, instead of the string property, an object itself is displayed, which looks like that <code>classes.SimpleTableObject@137ff5c</code>.</p>
  
  <p>How can I achieve it?</p>