Update table item text

Hello everybody, I need help with the table keyListener.

I have a table and I want update the item text when I change the text of the another item.

table.addKeyListener(new KeyListener(){

publicvoid keyPressed(KeyEvent e){

/**change the item text**/

}

});

When I put my code in a Button selectionlistener, for example, the table is updated, but when I put the code in a Table keylistener, it not works, it's good that I call the KeyListener or maybe I should use another Listener to the table

Thanks, and sorry if my english is not good

[828 byte] By [jcgonzalesa] at [2007-11-27 7:27:35]
# 1
Swing related questions should be posted in the Swing forum.Use a TableModelListener. Simple example in this posting: http://forum.java.sun.com/thread.jspa?forumID=57&threadID=566133
camickra at 2007-7-12 19:07:51 > top of Java-index,Java Essentials,Java Programming...