Here you can find the source of getDoubleTextField(javax.swing.JTextField textField)
public static double getDoubleTextField(javax.swing.JTextField textField)
//package com.java2s; //License from project: Open Source License public class Main { /** //from w w w . j a v a 2 s .c om * Return the text field value as a double. */ public static double getDoubleTextField(javax.swing.JTextField textField) { return Double.parseDouble(textField.getText().trim()); } }