code: static public Value floatValue (String name, final float currentValue, final float min, final float max,
  		final String description) {
  		return new DefaultValue(name, String.valueOf(currentValue)) {
  			public void showDialog () {
  				JSpinner spinner = new JSpinner(new SpinnerNumberModel(currentValue, min, max, 0.1f));
  				if (showValueDialog(spinner, description)) value = String.valueOf(((Double)spinner.getValue()).floatValue());
  			}
  
  			public Object getObject () {
  				return Float.valueOf(value);
  			}
  		};
  	}
docs: Prompts the user for float value
  
  @param name The name of the dialog to show
  @param currentValue The current value to be displayed
  @param description The help text to provide
  @param min The minimum value to allow
  @param max The maximum value to allow
  @return The value selected by the user