met with another problem in playing with JTable.
Here is the case:
I have a jtable that uses autocompletedecorator in the celleditor. and i set the jtable surrenderfocus to true, this is to enable the caret positioning even when user edit without clicking on the jtable.
Now the problem is, whenever i started editing without double clicking onto the cell, the first letter that i typed in is gone. but the autocompletedecorator knows of what i type and shows the suggestion.
I need to find a way to make sure what i type is not gone when im not double clicking onto the cell.
When i double click on cell and i type "q", everything works fine. the q i type is not gone and the autocompletedecorator shows the decoration after the q.
But, when i type directly without double clicking. the "q" i typed in is gone while the text shown by the autocompletedecorator shows everything including the "q" which means i have to type the "q" once again.
I hope there's someone who can help me here. Thank u in advance. =]