MaskFormatter « javax.swing.text « Java by API






1.new MaskFormatter("LLLL")
2.new MaskFormatter("UUUU")
3.new MaskFormatter('###-##-####')
4.new MaskFormatter('(###) ###-####') (2)
5.MaskFormatter; setPlaceholderCharacter(char placeholder)