Validating cells in JTable
Hi everybody,
I want to validate text input in cells in a JTable. Once the user has finished the editing of a cell (by leaving it, pressing enter, pressing tab, etc.) I want to validate it (for example: check if it is empty or not). If the validation fails I want to make the border of that specific cell red. If the validation passes, nothing should happen.
My question is this: how can I best do such a thing? I suspect I need to use some kind of listenerer but which one? And how do I go about making the borders of specific cells red?
Best regards,
Jethro Borsje

