addListeners();//и слушатели
panelDangerMap = new HashMap<Integer, PanelDanger>();
panelDangerMapTrash = new HashMap<Integer, PanelDanger>();
Iterator<DirectoryDangerItem> it = bigXmlMap.keySet().iterator();
while (it.hasNext()) {
DirectoryDangerItem ddi = it.next();
boolean block = !profcheckup.isNewlyCreated();
PanelDanger panelDanger = new PanelDanger(ddi,
bigXmlMap.get(ddi),
block,
contractLocal);
panelDangerMap.put(ddi.getID(), panelDanger);
// pnlDangers.add(panelDanger);
// pnlDangers.revalidate();
}
Iterator<PanelDanger> iterator = panelDangerMap.values().iterator();
fillDangers(iterator);