work with JTable cell (check input, set text color)

I have a JTable with data

The task is:

User inputs some data into cell

I want to check his input string for equatily with other values in column

For example, I have these values in column:

1.example

2.exercise

3.execute

User inputs word "execution" in the same column

until user inputs "executi" his input string should be red.

Whatevent I have to listen to if I want to get user input string?

Also a question:

Is there any opportunity to work with cell row (copy it to another JTable) ?

Message was edited by:

Holod

[637 byte] By [Holoda] at [2007-11-27 8:58:07]
# 1
i think you should use cell editor as textfield (although that is default for jtable) and then implements document listener and set text color in insert update method.try this out :-)
Prashant_SDNa at 2007-7-12 21:23:34 > top of Java-index,Desktop,Core GUI APIs...