I'm trying to convert whatever is written into the JTextField to a double, so I can use it in another class in an equation.
Trouble is I'm having trouble converting it, I know pasreDouble will convert a string but I have JTextField not a string =/
I created a JTextField as follows:
Code
int principalTextFieldLength = 10;
principalTextField = new JTextField(principalTextFieldLength);
principalTextField.setText("0.0");
add(principalTextField);