public void close() {

		newSelection.clear();

		ListIterator<Operation> iter =
			    new ArrayList<Operation>(removedOps.keySet()).listIterator(removedOps.size());

		/*
		 * Daca se vrea iesirea directa din fereastra, fara apasarea OK,
		 * atunci eventualele operatii eliminate din lista se trec inapoi, pe aceleasi pozitii
		 */
		while (iter.hasPrevious()) {
			
		   Operation op = iter.previous();
		   oldSelection.add(removedOps.get(op), op);			    
		}
		
		removedOps.clear();

		mainWindow.setEnabled(true);
		this.setVisible(false);
	}