Iterator it = this.login_window.getReservations_map().entrySet().iterator();
Map reservationProducts = new HashMap();
while (it.hasNext()) {
Map.Entry pairs = (Map.Entry)it.next();
Reservation r = (Reservation) pairs.getValue();
reservationProducts.put(r.getProduct().getId(), r.getProduct());
//it.remove(); // avoids a ConcurrentModificationException
}
this.jTextArea1.setForeground(Color.blue);