| Author |
Formatting numbers in a JTextArea
|
Luigi Plinge
Ranch Hand
Joined: Jan 06, 2011
Posts: 441
|
|
What's the best way of doing this?
JTextArea doesn't have a "printf" method, just "append".
For example
I want to cut the number calculated in this expression down to 2 decimal places.
|
 |
Luigi Plinge
Ranch Hand
Joined: Jan 06, 2011
Posts: 441
|
|
|
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Thanks for sharing the solution!
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: Formatting numbers in a JTextArea
|
|
|