posted 16 years ago
I am using tableModel, in conjunction with my own renderer class implementing TableCellRenderer. This doesn't work too well admittedly as the buttons don't yet show any visual evidence of having been pressed - this is just a cosmetic issue though and as such I hoped to be in a position to address it later once I'd gotten the core functionality sorted.
The relevant code is:
and
and
TimelinejTable.getSelectedRow() returns a value of -1 due to there being no actual row selected because instead of clicking on a cell, the user clicks on a button instead, which is where I believe the problem lays. Any advice?