aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes validating data in JTable Cell Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "validating data in JTable Cell" Watch "validating data in JTable Cell" New topic
Author

validating data in JTable Cell

Apan Raj
Greenhorn

Joined: Sep 04, 2003
Posts: 20
I want the user to enter only integer values in a column of a JTable. If the user enters any other value, I should show error message and have the focus on the particular cell itself.
Any Idea how to implement this ?


"If everything is in your way, sure you are on the wrong lane"
Jose Botella
Ranch Hand

Joined: Jul 03, 2001
Posts: 2120
Hello.
From the Java Tutorial:
Using an editor to validate user entered text
From the API:
swing.JOptionPane
swing.InputVerifier


SCJP2. Please Indent your code using UBB Code
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: validating data in JTable Cell