0

The user is expected to type 12 characters: 3 groups with 4 characters for each group. I'd like to show groups separated from each other using "-" or another character like this right while editing:

ABCD-EFGH-IJKL

Is it possible?

4ntoine
  • 19,816
  • 21
  • 96
  • 220

1 Answers1

0

You can use String.format class and get format you want.

Jayesh Khasatiya
  • 2,140
  • 1
  • 14
  • 15
  • it's inconvenient to work with it, one have to detect if it's the text or separator on every change like delete – 4ntoine May 07 '14 at 09:35