You had it nearly there, you needed to convert the meters to millimetres by multiplying by 1000, save the result in a double variable.

Then set the text box value using setText() to the double...