Reputation: 2454
I am using both JLabel
s and JTextField
s, and need to be able to truncate my doubles to two decimal places when they are displayed by the application.
How can I perform this truncation, preferably without switching to JFormattedTextField
s?
Upvotes: 1
Views: 1576