I am trying to configure JFormattedTextFieldto display a mask for entering an IP address.
I read javadoc and I tried with ###.###.###.###, but in many cases it is not valid.
I found an article for this, they use the Regex value for formatting, but they do not display a mask for entering an IP address.
I want to display 3 dots in a text box to display an IP address. Like this:
. . .
In many cases, I can enter an IP address. You can see in the IPv4 configuration in Windows.
. . .
Could you help me? Thanks for reading
source
share