public int[] buildSelectedIndexesArray() {

		String[] selectedItems = new String[MainWindow.lastSelectedTable[0]
				.getSelectedRows().length];
		LOG.info("laste selected: " + MainWindow.lastSelectedTable[0].getName());

		LOG.info("laste selected: " + MainWindow.lastSelectedTable[0].getName());
		if (MainWindow.lastSelectedTable[0].equals(MainWindow.leftTable)) {
			System.out.println("buildSelectedIndexesArray, left Table");
			MainWindow.tableModels[0] = MainWindow.leftTableModel;
			MainWindow.tableModels[1] = MainWindow.rightTableModel;
		}
		if (MainWindow.lastSelectedTable[0].equals(MainWindow.rightTable)) {
			System.out.println("buildSelectedIndexesArray, right Table");
			MainWindow.tableModels[1] = MainWindow.leftTableModel;
			MainWindow.tableModels[0] = MainWindow.rightTableModel;
		}
		int[] n = MainWindow.lastSelectedTable[0].getSelectedRows();

		LOG.info(" n[] : " + Arrays.toString(n) + " end");

		for (int i = 0; i < n.length; i++) {
			selectedItems[i] = MainWindow.tableModels[0].getValueAt(n[i], 0)
					.toString();
		}
		LOG.info(" selected items: " + Arrays.toString(selectedItems));
		return n;
	}