Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
JFormattedTextField validation
Campbell Ritchie
Marshal
Posts: 79177
377
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Don't know. I presume you have looked for tutorials like
this one
?
I think this
thread
would sit better on our GUIs forum, so I shall move it.
Michael Dunn
Ranch Hand
Posts: 4632
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
a JTextField with DocumentFilter set might suit you better
pete stein
Bartender
Posts: 1561
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Or perhaps all you need to do is use a standard JTextField and simply parse the textfield's text within a try/catch block, catching for NumberFormatException.
Nicol Green
Ranch Hand
Posts: 66
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes definitely, JFormattedTextField was not the best option in my case. I will try what you proposed, and than tell you what was the best solution.
Thanks!
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Reset of JTextField data
JFormattedTextField
Use mask formatter in conjunction with a DateFormatter in Swing
Strange behavior of the JFormattedTextField
Which Swing component to use ?
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...