jFormattedTextField’s Formatter.setCommitsOnValidEdit(true) doesn’t work at first focus
Actually, setCommitOnValidEdit should work always as you expect (and does in the code snippet below), no need for a DocumentListener, after all, the method is exactly for that purpose. So I suspect something else is wrong in your context. Or for some reason the very first edit isn’t parsed to anything valid? NumberFormatter numberFormatter = … Read more