When I edit a cell in a JTable. The cell text doesn't actually get set because I didn't tab out of the cell. Then when I try calling my method getSelectedText() which uses the text, the text isn't available because the cell still has the focus and was never edited. How do I manually commit the text when the cell still has the focus???
posted 14 years ago
I figured this one out my self for thos who need to now I just called: jtable.getCellEditor().stopCellEditing() before attemption to use the text