Question:
JAVA HELP-How do I output data on a text field? I am trying to append. Please see the code?
dr_spadius
2007-04-11 20:49:37 UTC
formattedDataString = currenctyNumberFormat.format(totalPayFloat);
payLabel.setText(formattedDataString);
numberProcessedLabel.setText("ssss" + ++numberProcessedInteger);
formattedDataString = decimalNumberFormat.format(bookpriceFloat);
extendedpriceTextField).append(formattedDataString);
Three answers:
Anand
2007-04-12 05:30:27 UTC
Please note you cannot append data to text Field

please use TextArea instead.



Good Luck.

Anand
jytopy
2007-04-11 22:56:18 UTC
lots of the text got cut off....

guess if you want to append a string you could use stringbuilder class. go check out the api.
anonymous
2007-04-11 21:47:14 UTC
your coding is all truncated. I cant see anything.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...