首先,我要祝贺 assylias出色的 JBloomberg API挽救了我的生命,我想知道如何将我从地图中获得的数据放入已经在 Netbeans 中设计的 JTable 中。
这是历史价格的代码:
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);
}
如何将地图的内容放在 JTable 中?