public void checkUtility(JObjective obj, JLabel lbl){
		boolean has0 = false;
		boolean has1 = false;
		double wt[] = obj.getDomain().getWeights();
		for (int j=0; j<wt.length; j++){
			if (wt[j]==0.0) has0 = true;
			if (wt[j]==1.0) has1 = true;				
		}
		if (!(has0 && has1)){	//if not properly set
			lbl.setForeground(Color.red);
			all_set=false;
		}
		else 
			lbl.setForeground(Color.black);
	
	}