{  view.getGamma().addChangeListener(this); view.getBitResolution().addChangeListener(this);  JComboBox transformations = view.getTransformations(), wavelengths = view.getWavelengths(); wavelengths.addActionListener(this); wavelengths.setActionCommand(""+WAVELENGTH); transformations.addActionListener(this); transformations.setActionCommand(""+FAMILY);   JButton button = view.getHistogram(); button.addActionListener(this); button.setActionCommand(""+HISTOGRAM); }
{  view.getGamma().addChangeListener(this); view.getBitResolution().addChangeListener(this);  JComboBox transformations = view.getTransformations(), wavelengths = view.getWavelengths(); wavelengths.addActionListener(this); wavelengths.setActionCommand(""+WAVELENGTH); transformations.addActionListener(this); transformations.setActionCommand(""+FAMILY);   JButton button = view.getHistogram(); button.addActionListener(this); button.setActionCommand(""+HISTOGRAM);   box = view.getNoise(); box.addActionListener(this); box.setActionCommand(""+NOISE); }
	void attachListeners()	{		//sliders		view.getGamma().addChangeListener(this);		view.getBitResolution().addChangeListener(this);		//comboboxes		JComboBox transformations = view.getTransformations(),				  wavelengths = view.getWavelengths();		wavelengths.addActionListener(this);		wavelengths.setActionCommand(""+WAVELENGTH);		transformations.addActionListener(this);		transformations.setActionCommand(""+FAMILY);				//button		JButton button = view.getHistogram();		button.addActionListener(this);		button.setActionCommand(""+HISTOGRAM);	}