Hello, I use JFormattedTextField for input the customer ID.
Everything works almost perfect. But I have a following problem: I type e.g. some digits. Than I make the double click with the left mouse button inside of this field. And the cursor jumps forward at some positions and left the empty spaces. Is this a bug? Do you have any ideas how can I prevent it? Thanks a lot! Regards, Olena
This is a bit of a guess, but I have used some of the formatters a fair amount.
The MaskFormatter is just that, it puts a mask into the field. It has placeholder characters that fill in the field until the user puts in some value. You can specify the placeholder character, but I'm guessing the defualt is a space.
Oh, sure, you could do that. Or you could eat some pie. While reading this tiny ad: