private void inputBestValue(){
		double ansd = 0;
        String ans = null;
    	ans = (String)JOptionPane.showInputDialog(this, "Best Value", "Other", JOptionPane.PLAIN_MESSAGE, 
                null, null, String.valueOf(obj_sel.minC + (obj_sel.maxC - obj_sel.minC)/2));
        		//suggest the median value	 
    	try{    		
	        if ((ans != null) && (ans.length() > 0)) {
	        	ansd = (Double.valueOf(ans)).doubleValue();
	        	if (ansd <= obj_sel.maxC && ansd >= obj_sel.minC)	        		
	        		obj_sel.setContinuous(ansd);
	        	else{
	        		JOptionPane.showMessageDialog(this, "Out of range", "Error", JOptionPane.WARNING_MESSAGE);      
	            	inputBestValue();
	        	}	        		
	        }
    	}catch(NumberFormatException e){                    
    		JOptionPane.showMessageDialog(this, "Invalid Entry", "Error", JOptionPane.WARNING_MESSAGE);      
    		inputBestValue();
        }  
    }