From c64befc3168e891089e37415c3ea22c7b4b045b3 Mon Sep 17 00:00:00 2001 From: Igor Cher Date: Wed, 12 Dec 2012 12:07:01 +0200 Subject: [PATCH] Fix issue #8 Check all button throws exception --- src/main/java/hrider/ui/views/DesignerView.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/hrider/ui/views/DesignerView.java b/src/main/java/hrider/ui/views/DesignerView.java index 4dca74f..6f87370 100644 --- a/src/main/java/hrider/ui/views/DesignerView.java +++ b/src/main/java/hrider/ui/views/DesignerView.java @@ -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) { @@ -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);