how to make a jtextfield a phone number format in netbeans
Solution
Just use JFormattedTextField & MaskFormatter class for aphone number.
Example :
MaskFormatter m1=new MaskFormatter(“(###) ###-###”);
JFormattedTextField ft1=new JFormattedTextField(m1);
To use these classes import 2 packages
1)import javax.swing.JFormattedTextField;
2)import javax.swing.text.MaskFormatter;