First I’d like to congratulate assylias on the amazing JBloomberg 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?
code