Results 1 to 3 of 3
- 04-25-2008, 04:05 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 25
- Rep Power
- 0
- 04-25-2008, 04:12 PM #2
Yes. Try to parse the String from the text field with Integer.parseInt(String s). If you get a NumberFormatException exception then it wasn't an int so you can act on that information.
Daniel @ [www.littletutorials.com]
Language is froth on the surface of thought
- 04-28-2008, 10:26 AM #3
Member
- Join Date
- Nov 2007
- Posts
- 25
- Rep Power
- 0
Similar Threads
-
get numeric value from a text field
By Lehane_9 in forum New To JavaReplies: 2Last Post: 06-14-2008, 03:19 AM -
Using reflection to check array type and length
By Java Tip in forum java.langReplies: 0Last Post: 04-23-2008, 08:15 PM -
Using reflection to check array type and length
By Java Tip in forum java.langReplies: 0Last Post: 04-14-2008, 08:42 PM -
FInal field cannot be assigned
By ravian in forum New To JavaReplies: 3Last Post: 12-13-2007, 02:26 PM -
Waste Space & Text Field
By Gajesh Tripathi in forum AWT / SwingReplies: 2Last Post: 12-01-2007, 07:44 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks