JTable cell Editing
Hi gurus,
I am new to the Java forum (I have C++ background) and I am a bit confused on a swing issue.
I need to open a JFrame window containing a JTable and have a specific cell open for editing.
I tried the following code in jbInit()
Code:
jTableHighScores.editCellAt(newRank - 1, 2);
jTableHighScores.getEditorComponent().requestFocus();
but the specified cell is not open for editing.
I have to move the mouse on it and doubleclick to open it. What do I miss?
Also I need to capture the <enter> when the user finishes editing with the cell and then do smthng with the new value. How do I go about it?
Thank you
Extreme situations require extreme measures