@Override
	public void stateChanged(ChangeEvent event) {
		if(event.getSource() == carbohydratePercentageSlider) {
			try {
				carbohydratePercentageTextField.setText(String.valueOf(carbohydratePercentageSlider.getValue()));
			} catch(NumberFormatException nfe) {}
		} else if(event.getSource() == proteinPercentageSlider) {
			try {
				proteinPercentageTextField.setText(String.valueOf(proteinPercentageSlider.getValue()));
			} catch(NumberFormatException nfe) {}
		} else if(event.getSource() == lipidPercentageSlider) {
			try {
				lipidPercentageTextField.setText(String.valueOf(lipidPercentageSlider.getValue()));
			} catch(NumberFormatException nfe) {}
		}
	}