title: Make JSpinner completely numeric
body: <p>I've a Jspinner that can vary from <code>minimum</code> to <code>maximum</code> at steps of <code>0.1</code>. This is working perfectly fine. Now, I set the editor of <code>JSpinner</code> as <code>NumberEditor</code> as the user can edit the textbox and I want only numeric values from this. This is also working, that is whatever the user may enter, the editor gives me only the numbers in the editor when I get the value using <code>mySpinner.getValue().toString();</code>. Now cones the problem. I want the textbox to accept only numeric values and <code>.(decimal point)</code>, that is, if the user tries to enter anything apart from <code>0-9</code> and <code>.</code>, it should not echo it in the textbox. </p>
  
  <pre><code>JSpinner mySpinner = new JSpinner();
  mySpinner.setModel(new SpinnerNumberModel(default,minimum,maximum,0.1));
  mySpinner.setEditor(new JSpinner.NumberEditor(mySpinner,"##.#"));
  </code></pre>
  
  <p>Can someone help me with this. Thanks :)</p>