You need to extract the text from the JTextField *when* you need it by calling getText() on the field, and then convert it to double or int (as the need may be) by using the double...