When a JFormattedTextField field value is set by setText, then when the field initially gains focus it seems to not use the edit formatter, but rather use display formatter, which is wrong. Native "Date and Time setting" in windows changes the date field to edit mode in initial focus itself. Fix is made to treat setText as in edit mode and commit the changes made to it.
------------- Commit messages: - 5032471: JFormattedTextField does not use editformatter on initial focus with setText() - 5032471: JFormattedTextField does not use editformatter on initial focus with setText() - Merge branch 'master' of github.com:prsadhuk/jdk - Merge remote-tracking branch 'upstream/master' - Merge remote-tracking branch 'upstream/master' - Revert "Fix" - Fix Changes: https://git.openjdk.org/jdk/pull/14993/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14993&range=00 Issue: https://bugs.openjdk.org/browse/JDK-5032471 Stats: 138 lines in 2 files changed: 138 ins; 0 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/14993.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/14993/head:pull/14993 PR: https://git.openjdk.org/jdk/pull/14993
