@Override
			public void actionPerformed(ActionEvent arg0) {

				
				if (checkedImages.size() == 2) {
					try {
						compareWindow = new CompareImagesWindow(imageList
								.get(checkedImages.get(0)), imageList
								.get(checkedImages.get(1)));
						compareWindow.setVisible(true);
					}
				
					catch (IOException ex) {
						Logger.getLogger(MainWindow.class.getName()).log(
								Level.SEVERE, null, ex);
					}
				}

			}