This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How to format a textfield to accept different data types?!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic
Author

How to format a textfield to accept different data types?!!

Meghna ks
Ranch Hand

Joined: Mar 15, 2001
Posts: 122
Hi people
I have a bean with Labels and textfields together. The data inside the textfields is a Vector of Objects. I need to be able to get the textfield to accept different datatypes depending on other dependencies.How do I get the textfield to accept :
1. A String datatype only
2. An Integer datatype only
3. A Date datat type only
4. An IPAddress formatted value
Thanks
Meghna
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

please don't post the same qstn more than once.
This thread may be closed.

Thanks.
- satya

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to format a textfield to accept different data types?!!
 
Similar Threads
How to format a textfield to accept different data types?!!
Rendering a single column in a JTable for accepting different datatypes ?
Hi guys !! I really need your help here ..
This is really bad => How to add a combobox to an existing textfield dynamically
How to format a textfield to accept different data types?!!