Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCMJD
Search Coderanch
Advance search
Google search
Register / Login
Help coderanch get a
new server
by contributing to the
fundraiser
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
Developer Certification (OCMJD)
question regarding JtextField for book seats??
Lisa Foster
Ranch Hand
Posts: 116
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In my JtextField I would like to check if a user has typed in something other then a number.
Forexample a user types by mistake 'w' instead of 3 how can I detect this error???
Thanks Lisa
Karthik Guru
Ranch Hand
Posts: 1209
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
There's a example in Core
Java
vol 1 (chapter on swing).
It does'nt allow the user to type in anything other than a +ve integer.
Lisa Foster
Ranch Hand
Posts: 116
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
thank you karthik Guru, I found it: a little more then I expected but it is worth the general considerations points.
Thanks Lisa
Rudy Yeung
Ranch Hand
Posts: 183
posted 23 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Lisa,
Check out the creating a validated text field under this link:
http://java.sun.com/docs/books/tutorial/uiswing/components/textfield.html
Rudy
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JTextField getText() no Enter pressed
JTextField length restriction...
mnemonics and added characters
NumberFormat, Currency, JTextField
retrieve the data from JTextField
More...