io facci così:
codice:
Double.parseDouble(jtextfield.getText());