What is the easiest way to output only a certain number of digits after a decimal place in a JTextCo
- by badpanda
I am using both JLabels and JTextFields, and need to be able to truncate my doubles to two decimal places when they are outputted to the application.
What is the easiest way of doing this (preferably without switching to JFormattedTextFields)?
Thanks,
badPanda :D