我有这个领域:
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);
}
}