title: Binding hashmap with tableview (JavaFX)
body: <p>I want to display <code>HashMap</code> contents in a  JavaFX <code>Tableview</code>. Please find below the code I used to set the <code>HashMap</code> contents into the table columns.  The problem I'm having is that it's displaying only one row.  The <code>for</code> loop is iterating only 5 times: each time it is picking up the first value of the <code>HashMap</code>.</p>
  
  <p>If I ignore the <code>return SimpleObjectProperty</code> line, the <code>for</code> loop is iterating over all the content in the <code>HashMap</code>.</p>
  
  <pre><code>final ObservableList&lt;Map&gt; data = FXCollections.observableArrayList();
  data.addAll(HASHMAP);
  
  TableColumn&lt;Map.Entry, String&gt; nCol = new TableColumn&lt;Map.Entry, String&gt;("Name");
  nCol.setEditable(true);
  nCol.setCellValueFactory(new Callback&lt;TableColumn.CellDataFeatures&lt;Entry, String&gt;, ObservableValue&lt;String&gt;&gt;() {
  
   @Override
   public ObservableValue&lt;String&gt; call(TableColumn.CellDataFeatures&lt;Entry, String&gt; p) {
          Set &lt;String&gt; set=HASHMAP.keySet();
      for (String key:HASHMAP.keySet())
      {
             String key1= key.toString();
             return new SimpleObjectProperty&lt;&gt;(key.toString());
      }
           return null;
  
          } 
  
      });
    Table.setItems(data);
    Table.getColumns().setAll(nCol,.........);
  </code></pre>