forked from External/mage
Fixed that wathcing games did not work correctly.
This commit is contained in:
parent
996f07a4ff
commit
6d4a3bac28
3 changed files with 7 additions and 7 deletions
|
|
@ -111,7 +111,7 @@ public class ButtonColumn extends AbstractCellEditor implements TableCellRendere
|
|||
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
if (table.getRowCount() >= table.getEditingRow()) {
|
||||
if (table.getRowCount() > 0 && table.getRowCount() >= table.getEditingRow()) {
|
||||
int row = table.convertRowIndexToModel(table.getEditingRow());
|
||||
fireEditingStopped();
|
||||
ActionEvent event = new ActionEvent(table, ActionEvent.ACTION_PERFORMED, "" + row);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue