so I have some text fields in java Swing that I'm trying to populate with data in these variables, now the top block of code works fine because the variables are of type String and the setText(String); method works
My problem lies in not being able to set the value of my textfields to a variable of type double, when I try i get the error actual argument double cannot be converted to java.lang.string.
Is there any way of parsing the variables contents and then converting that to string or ?
posted 5 years ago
never mind solved by doing textfield.setText(Double.toString(Variable));