Workaround for JFormattedTextField delete bug in Java for Mac OS X 10.6 Update 2 (1.6.0_20)
        Posted  
        
            by Johan Kaving
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Johan Kaving
        
        
        
        Published on 2010-06-03T08:09:55Z
        Indexed on 
            2010/06/03
            8:14 UTC
        
        
        Read the original article
        Hit count: 340
        
There is apparently a bug introduced in the latest Java update for Mac OS X, which causes deletes in JFormattedTextFields to be performed twice. See http://lists.apple.com/archives/java-dev/2010/May/msg00092.html
The DefaultEditorKit.deletePrevCharAction is invoked twice when the delete key is pressed.
Are there any suggestions for a workaround?
I'm thinking of replacing the delete action for my text fields with a patched version that somehow filters out these duplicate invocations.
© Stack Overflow or respective owner