Hello,
I am trying to create a MaskFormatter that formats an elapsed time. The number of elapsed seconds is stored as a Double and should be formatted similar to
days:hh:mm:ss.sss. I have come up with an extension to MaskFormatter, inspired by
http://weblogs.java.net/blog/hansmuller/archive/2005/08/using_swings_jf.html, which seems to do the job. However, a problem arises after initially inputting an elapsed time. After the initial edit, the value cannot be edited. What am I doing wrong? Here is the code with a main that illustrates the problem:
Any ideas?