This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Regarding TextBox validation in Swing" Watch "Regarding TextBox validation in Swing" New topic
Author

Regarding TextBox validation in Swing

Nodappa Hero
Greenhorn

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

Joined: Oct 11, 2000
Posts: 1121

Hi Nodappa,
In case you haven't already seen it, I think the following section of the Java Tutorial is relevant:
http://java.sun.com/docs/books/tutorial/uiswing/components/textfield.html
And if you are using java version 1.4, then I think this (other) section of the Java Tutorial is also relevant:
http://java.sun.com/docs/books/tutorial/uiswing/components/formattedtextfield.html
Hope this helps.
Good Luck,
Avi.
 
 
subject: Regarding TextBox validation in Swing
 
Similar Threads
saving the details in when i click next and previous buttons
hide dropdown list
Converting to Float
Textbox value removal
problem in getting values using EL