A DESCRIPTION OF THE PROBLEM : The API docs use the following code as example: ---------- JFormattedTextField tf = new JFormattedTextField(); tf.setValue(new Number(100)); ---------- This is a bad example because it creates an instance of Number which is an abstract class. This code will never compile. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - I expected working example code, e.g. ---------- JFormattedTextField tf = new JFormattedTextField(); tf.setValue(new Integer(100)); ---------- ACTUAL - JFormattedTextField tf = new JFormattedTextField(); tf.setValue(new Number(100)); URL OF FAULTY DOCUMENTATION : http://java.sun.com/javase/6/docs/api/javax/swing/JFormattedTextField.html