wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Regarding TextBox validation in Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Regarding TextBox validation in Swing" Watch "Regarding TextBox validation in Swing" New topic

Regarding TextBox validation in Swing

Nodappa Hero

Joined: Apr 06, 2003
Posts: 1
I have got a problem. I want user to be restricted for entering only numeric characters into the textbox. Any pointers on this.
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1134

Hi Nodappa,
In case you haven't already seen it, I think the following section of the Java Tutorial is relevant:
And if you are using java version 1.4, then I think this (other) section of the Java Tutorial is also relevant:
Hope this helps.
Good Luck,
wood burning stoves
subject: Regarding TextBox validation in Swing