Skip to content

Commit

Permalink
Fix issue #8
Browse files Browse the repository at this point in the history
Check all button throws exception
  • Loading branch information
Igor Cher committed Dec 12, 2012
1 parent 5fbcf0a commit c64befc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/hrider/ui/views/DesignerView.java
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,8 @@ public void tableChanged(TableModelEvent e) {
DesignerView.this.rowsTable.addColumn(tableColumn);
DesignerView.this.rowsTableAddedColumns.put(name, tableColumn);
DesignerView.this.rowsTableRemovedColumns.remove(name);

DesignerView.this.rowsTable.moveColumn(DesignerView.this.rowsTable.getColumnCount() - 1, getColumnIndex(name));
}
else {
if (DesignerView.this.rowsTable.getRowCount() > 0) {
Expand All @@ -767,10 +769,10 @@ public void tableChanged(TableModelEvent e) {
if (DesignerView.this.scanner != null) {
populateColumnOnRowsTable(getSelectedTableName(), name, DesignerView.this.scanner.current());
}

DesignerView.this.rowsTable.moveColumn(DesignerView.this.rowsTable.getColumnCount() - 1, getColumnIndex(name));
}
}

DesignerView.this.rowsTable.moveColumn(DesignerView.this.rowsTable.getColumnCount() - 1, getColumnIndex(name));
}
else {
TableColumn tableColumn = DesignerView.this.rowsTableAddedColumns.get(name);
Expand Down

0 comments on commit c64befc

Please sign in to comment.