public void writeValue(JTextFieldUnit othertext, JTextFieldUnit thistext,
			JComboBoxUnit lefte, JComboBoxUnit righte) {
		if(!thistext.getText().equals("")){
		if (lefte.getSelectedItem() != null && righte.getSelectedItem() != null)
			try {
				othertext.setText(Double.toString(Converter.convert(Double
						.parseDouble(thistext.getText()), lefte
						.getSelectedItem().toString(), righte.getSelectedItem()
						.toString())));
				label_err.setVisible(false);
			} catch (Exception e) {

				righte.setEnabled(false);
				label_err.setVisible(true);
				righte.setEnabled(true);
				lefte.removeAllItems();
				for (String key : Converter.getConvertableUnits(righte
						.getSelectedItem().toString())) {
					lefte.addItem(key);
				}
				lefte.addItem("----------");
				int k = lefte.getItemCount() - 1;
				HashSet<Integer> temp = new HashSet<Integer>();
				temp.add(k);
				lefte.setDisableIndex(temp);
				for (String key : Converter
						.getUnitsAppropriated(CONFIG.Units.ALL)) {
					lefte.addItem(key);
				}

			}
		}
	}