Fixed that wathcing games did not work correctly.

This commit is contained in:
LevelX2 2016-02-28 10:52:55 +01:00
parent 996f07a4ff
commit 6d4a3bac28
3 changed files with 7 additions and 7 deletions

View file

@ -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);