public void actionPerformed(ActionEvent e) {
		if (e.getSource() == buttonOk) {
			wavelength = (int) Double.parseDouble(textWavelength.getText());
			loadExistingValues();
			updateConsole();
		}

		if (e.getSource() == buttonNext) {
			power[i] = Double.parseDouble(textPower.getText().replaceAll(" ", "").replaceAll(",", "")
					.replaceAll(",", ""));
			updateConsole();
			if (i == 10)
				i = 0;
			else
				i++;
			labelPowerMesured.setText("Power mesured for point " + (i + 1) + " / 11 :");
			textPower.setText("" + power[i]);
			actionManager.calibrationUp();
		}

		if (e.getSource() == buttonPrevious) {
			power[i] = Double.parseDouble(textPower.getText().replaceAll(" ", "").replaceAll(",", "")
					.replaceAll(",", ""));
			updateConsole();
			if (i == 0)
				i = 10;
			else
				i--;
			labelPowerMesured.setText("Power mesured for point " + (i + 1) + " / 11 :");
			textPower.setText("" + power[i]);
			actionManager.calibrationDown();
		}

		if (e.getSource() == buttonSave) {
			if (wavelength != 0) {
				if (laser == 1)
					FileManager.writeValues(wavelength + ".ml1", power, laser);
				else
					FileManager.writeValues(wavelength + ".ml2", power, laser);
				window.miseAJourCombo();
				dispose();
			}

			else {
				msgBoxError = new JOptionPane();
				JOptionPane.showMessageDialog(this,
						"The wavelength is equal to 0", "Erreur",
						JOptionPane.ERROR_MESSAGE);
			}
		}
	}