posted 21 years ago
Hi there,
I've got a JTable in which ppl can change some data. Before selecting anything else on the screen I want the data that is changed checked (ppl can change data in the same row without a problem, without checking..).
So I added a List Selection Listener to the ListSelectionModel and it works like a charm.. almost..
If a user selects a row, edits some fields in it and selects another row I can check the data. But the ListSelectionModel doens't react on keyboard navigation input (arrow up, arrow down)..
Is there anyway to override the standard keyboard navigation ?
I have another question.. When is the setValueAt from the tablemodel called?
I noticed that when defocusing the table after changing a textfield in it (without pressing enter, changing cells,...) the setValueAt method is not called... anyway to get around this without too much hastle?
Thanks!
Sebastiaan