I used this statement so that it would convert the string input in textfield to a double,
Where is the converted value saved in a variable? That code does NOT assign any value to a variable. The converted value is discarded.
That statement calls two methods: equals() and parseDouble() and does NOT save the values returned by either.