I have a program that creates a GUI with three text fields in it, and two of these fields is supposed to accept a numeric value. I want to know how to get the numeric entries and store them in a variable for further calculations please.
I know how to get the string value entered into the one field, you just need to code,
String varname = txt1.getText();
and I was hopig for something similar for number values, a double to be specific, as there does not seem to be any .getDouble(); available??
If someone could advise me on this, I would be forever in your debt, and thanks in advance!!