I am trying once again to work with JFormattedTextField and
        MaskFormatter. (JDK 1.4)

        JTextField components use insert mode, so I wanted to use insert
        mode for my JFormattedTextFields.  Insert mode doesn't seem to work.

        I can enter data only if I highlight at least one character of the 
        existing text and even then I can type at most 1 character.  This
        is true even if the length of the text in the JFormattedTextField 
        is less than the maximum length.  The only way I have been able to 
        insert multiple characters is to use cut&paste, which is no different 
        than being in overstrike mode.

        I suspect that the problem is tied to the MaskFormatter imposing
        a maximum text size. Since placeholder characters are used when the 
        value is shorter than the maximum allowed length, the formatter 
        always thinks that the next character typed is going to exceed the 
        allowed length and refuses the edit.

        Am I missing something obvious?  Has anyone had success with
        JFormattedTextField + MaskFormatter in insert mode?  

        Maureen

         
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to