@Override
			public void actionPerformed(ActionEvent ae) {
				switch (fileChooser.showOpenDialog(MainWindow.this)) {
					case JFileChooser.APPROVE_OPTION:
						detector = new Detector(fileChooser.getSelectedFile().toString());
						try {
							/* A logfjl kivlasztsa utn a kld ID-kal feltlti a legrdl ment.*/
							Set<String> ids = detector.getSenderIds();
							DefaultComboBoxModel<String> model = new DefaultComboBoxModel<String>();
							model.addElement("<Select sensor ID!>");
							for (String id : ids) {
								model.addElement(id);
							}
							box.setModel(model);
							diag.setSysDown(detector.getSystemDownTime());
						} catch (IOException e) {
							e.printStackTrace();
						}
						break;
					case JFileChooser.CANCEL_OPTION:
						break;
					case JFileChooser.ERROR_OPTION:
						break;
				}
			}