I am using both JLabels and JTextFields, and need to be able to truncate my doubles to two decimal places when they are displayed by the application.
JLabel
JTextField
How can I perform this truncation, preferably without switching to JFormattedTextFields?
JFormattedTextField
You can use DecimalFormat class. Here is an explanation
Prefer the Swing JFormattedTextField instead; see the Java Tutorial.