Ho questo campo:Come per ogni hashmap?
HashMap<String, HashMap> selects = new HashMap<String, HashMap>();
Per ogni Hash<String, HashMap>
necessario creare un ComboBox
, i cui elementi sono il valore (che risulta essere un HashMap stesso) di HashMap <String, **HashMap**>
.
A titolo di (non funzionante) dimostrazione:
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);
}
}
In Java 8 utilizzando Lambda: http://stackoverflow.com/a/25616206/1503859 –