aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Regarding TextBox validation in Swing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 1112

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Regarding TextBox validation in Swing
 
Similar Threads
problem in getting values using EL
Converting to Float
hide dropdown list
saving the details in when i click next and previous buttons
Textbox value removal