JFormattedTextField defines the following constants:
public static final int CommitValueOnFocusLost = 0;
public static final int CommitOrRevertValueOnFocusLost = 1;
public static final int RevertValueOnFocusLost = 2;
public static final int PersistValueOnFocusLost = 3;
which do not follow the java naming conventions.
As we are going to change them, they can be shortened to the following:
public static final int COMMIT = 0;
public static final int COMMIT_OR_REVERT = 1;
public static final int REVERT = 2;
public static final int PERSIST = 3;