Show wait cursor while keyword search runs

This commit is contained in:
Peter J. Martel 2011-12-08 14:46:25 -05:00
parent a895df2859
commit ac2b767da3

View File

@ -18,6 +18,7 @@
*/
package org.sleuthkit.autopsy.keywordsearch;
import java.awt.Cursor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyChangeEvent;
@ -55,7 +56,12 @@ public class KeywordSearchDataExplorer implements DataExplorer {
@Override
public void actionPerformed(ActionEvent e) {
search(tc.getQueryText());
tc.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
try {
search(tc.getQueryText());
} finally {
tc.setCursor(null);
}
}
});
}