I am working on simple calculator, where users input two numbers in TextField and the result is displayed in result TextField. I used Double.pars
TextField
Double.pars
There is no method TextField.setText (double)
TextField.setText (double)
try
resultInput.setText("" + resultV);
but I guess what you really want is for the result to be nicely formatted to maybe two decimal places?
try using
resultInput.setText(String.format ("%6.2f", resultV));