From c33f098de8a43a2df778d4d694e0c07bbde59828 Mon Sep 17 00:00:00 2001 From: Matt Windsor Date: Mon, 21 Feb 2011 23:21:35 +0000 Subject: 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. --- src/uk/org/ury/library/viewer/LibraryViewerPanel.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/uk/org/ury/library/viewer/LibraryViewerPanel.java') 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); } -- cgit v1.2.3