Question: First I’d like to congratulate assylias on [the amazing JBloomberg API](https://stackoverflow.com/questions/18173350/draw-historical-last-price-chart-using-bloomberg-api) that has saved my life and I'm asking how can I put the data that I get from the map in JTable already designed in Netbeans.

Here is the code for the historical prices:

```
Map<DateTime, TypedObject> data = result.forSecurity("SPX Index")
     .forField("PX_LAST").get();
for (Map.Entry<DateTime, TypedObject> e : data.entrySet()) {
    DateTime dt = e.getKey();
    double price = e.getValue().asDouble();
    System.out.println("[" + dt + "] " + price);
}

```

How could I place the content of the Map in a JTable?

Answer: 
Wrap your `Map<DateTime, TypedObject>` in a `TableModel`, as shown in [`EnvTableTest`](https://stackoverflow.com/a/9134371/230513).
code

```
BloombergSession session = new DefaultBloombergSession();
session.start();
RequestBuilder<HistoricalData> hrb = new HistoricalRequestBuilder("SPX Index",
     "PX_LAST", DateTime.now().minusDays(7), DateTime.now()).fill(
     HistoricalRequestBuilder.Fill.NIL_VALUE).days(
     HistoricalRequestBuilder.Days.ALL_CALENDAR_DAYS);
HistoricalData result = session.submit(hrb).get();
Map<DateTime, TypedObject> data = result.forSecurity("SPX Index")
     .forField("PX_LAST").get();
for (Map.Entry<DateTime, TypedObject> e : data.entrySet()) {
    DateTime dt = e.getKey();
    double price = e.getValue().asDouble();
    System.out.println("[" + dt + "] " + price);
}

```