NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
petegmz
Joined: 03 Jul 2012 Posts: 1
|
Posted: Tue Jul 03, 2012 8:14 pm Post subject: JTextField Format |
|
|
I am new to Java and NetBeans and I am wondering how I can add parentheses and a hyphen into a JTextField that asks the user for a phone number. I want the field to look like this:
"( ) - "
How can I do this and also be able to display the phone number in a JTable in this format (###)###-####? |
|
| Back to top |
|
 |
Llelan D.
Joined: 12 Dec 2008 Posts: 30
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|