我有这个字段:
HashMap<String, HashMap> selects = new HashMap<String, HashMap>();
对于每个Hash<String, HashMap>
,我需要创建一个ComboBox
,其项目是HashMap <String, **HashMap**>
的值(恰好是HashMap本身)。
通过(无效的)示范:
for (int i=0; i < selects.size(); i++) {
HashMap h = selects[i].getValue();
ComboBox cb = new ComboBox();
for (int y=0; y < h.size(); i++) {
cb.items.add(h[y].getValue);
}
}