aboutsummaryrefslogtreecommitdiff
path: root/src/uk/org/ury/library/viewer/LibraryViewerPanel.java
diff options
context:
space:
mode:
authorMatt Windsor <mbw500@student.cs.york.ac.uk>2011-02-21 23:21:35 +0000
committerMatt Windsor <mbw500@student.cs.york.ac.uk>2011-02-21 23:21:35 +0000
commitc33f098de8a43a2df778d4d694e0c07bbde59828 (patch)
treea6ffd4c0b133db81079ca0746088da76d511f438 /src/uk/org/ury/library/viewer/LibraryViewerPanel.java
parentaf1013959f6ab36ed9f2ff603c08116ee1b55c57 (diff)
Added auth; added clean property to Libraryitem etc., fixed a bug in LibraryViewerPanel which searching twice in a row for zero-result strings would crash the frontend.
Diffstat (limited to 'src/uk/org/ury/library/viewer/LibraryViewerPanel.java')
-rw-r--r--src/uk/org/ury/library/viewer/LibraryViewerPanel.java14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/uk/org/ury/library/viewer/LibraryViewerPanel.java b/src/uk/org/ury/library/viewer/LibraryViewerPanel.java
index af35149..7057cc0 100644
--- a/src/uk/org/ury/library/viewer/LibraryViewerPanel.java
+++ b/src/uk/org/ury/library/viewer/LibraryViewerPanel.java
@@ -99,6 +99,11 @@ public class LibraryViewerPanel extends FrontendPanel
{
FrontendError.reportFatal ("UI creation failure: " + e.getMessage (), null);
}
+
+
+ // Fine-tune table
+
+ resultsTable.setAutoCreateRowSorter (true);
}
@@ -194,11 +199,6 @@ public class LibraryViewerPanel extends FrontendPanel
{
// Ignore
}
-
-
- // Force table update with new results.
-
- resultsTable.setModel (new LibraryTableModel (master.getLibraryList ()));
/* Re-enable widgets and swap panels according to whether
@@ -220,6 +220,10 @@ public class LibraryViewerPanel extends FrontendPanel
}
else
{
+ // Force table update with new results.
+
+ resultsTable.setModel (new LibraryTableModel (master.getLibraryList ()));
+
messagePanel.setVisible (false);
resultsPane.setVisible (true);
}