--- old/src/java.desktop/share/classes/javax/swing/JFormattedTextField.java 2017-05-18 14:08:11.000000000 -0700 +++ new/src/java.desktop/share/classes/javax/swing/JFormattedTextField.java 2017-05-18 14:08:11.000000000 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -54,8 +54,15 @@ * JFormattedTextField allows * configuring what action should be taken when focus is lost. The possible * configurations are: - * - * + * + *

Value

Description

+ * + * + * + * + * + * * *
Possible JFormattedTextField configurations and their descriptions + *
ValueDescription
JFormattedTextField.REVERT * Revert the display to match that of getValue, * possibly losing the current edit. @@ -71,6 +78,7 @@ *
JFormattedTextField.PERSIST * Do nothing, don't obtain a new * AbstractFormatter, and don't update the value. + *
* The default is JFormattedTextField.COMMIT_OR_REVERT, * refer to {@link #setFocusLostBehavior} for more information on this.