private void setType(int type) {
		if (type == 0){
			units1 = new JComboBox<Object>(LengthUnits.values());
			units2 = new JComboBox<Object>(LengthUnits.values());
		} else if (type == 1){
			units1 = new JComboBox<Object>(AreaUnits.values());
			units2 = new JComboBox<Object>(AreaUnits.values());
		} else if (type == 2){
			units1 = new JComboBox<Object>(VolumeUnits.values());
			units2 = new JComboBox<Object>(VolumeUnits.values());
		} else if (type == 3){
			units1 = new JComboBox<Object>(MassUnits.values());
			units2 = new JComboBox<Object>(MassUnits.values());
		} else if (type == 4){
			units1 = new JComboBox<Object>(TimeUnits.values());
			units2 = new JComboBox<Object>(TimeUnits.values());
		} else if (type == 5){
			units1 = new JComboBox<Object>(AngleUnits.values());
			units2 = new JComboBox<Object>(AngleUnits.values());
		} else if (type == 6){
			units1 = new JComboBox<Object>(TemperatureUnits.values());
			units2 = new JComboBox<Object>(TemperatureUnits.values());
		}
		this.type = type;
	}