title: read in double from java jtextfield
body: <p>Seems like a very simple question however I can't read in a double from a jtextfield. I can easily read in a string using getText(); but no luck with double.</p>
  
  <p>My objective is read in the double carry out a subtraction on it and then redisplay it back to the user once the submit buttons pressed...Action listener is working fine and to make it look more simple I didn't add it in...if it helps I can add it.</p>
  
  <pre><code>if (e.getSource() == submit)
              {
                  cashRecieved = CashNeeded.getText();
  
              }
  </code></pre>
  
  <p>cashRecieved is type double therefore eclipse is complaining understandable stating it can't store a string to a double....</p>