Getting started: JTable data validation
Posted on 2001-06-21
I have to write a set of methods which validate the data entered into a JTable.
My starting point is a method which loops through the cells of a row and checks to ensure that:
1. Each cell is not empty, and
2. Each cell does not contains only spaces.
(From there I would like to highlight the offending cell(s) and show a dialog box -- a separate matter)
I have been unable to find examples of similar validation code, either in my many Java books, or on the web.
Please let me know if you know of ANY publicly available table validation code examples, or if you are willing to share any examples of your own.
Many thanks in advance.