From c8c8f90e010e0e1cdf1b83bb8dead8a4a9b53b39 Mon Sep 17 00:00:00 2001 From: Brian Sweeney Date: Fri, 6 Apr 2018 15:35:58 -0600 Subject: [PATCH] ensure that panel closes on search --- .../sleuthkit/autopsy/commonfilesearch/CommonFilesPanel.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonFilesPanel.java b/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonFilesPanel.java index 633e75c34a..3ef5e626df 100644 --- a/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonFilesPanel.java +++ b/Core/src/org/sleuthkit/autopsy/commonfilesearch/CommonFilesPanel.java @@ -28,6 +28,7 @@ import java.util.concurrent.ExecutionException; import java.util.logging.Level; import javax.swing.AbstractListModel; import javax.swing.ComboBoxModel; +import javax.swing.SwingUtilities; import javax.swing.SwingWorker; import javax.swing.event.ListDataListener; import org.openide.util.NbBundle; @@ -381,6 +382,7 @@ public final class CommonFilesPanel extends javax.swing.JPanel { private void searchButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_searchButtonActionPerformed search(); + SwingUtilities.windowForComponent(this).dispose(); }//GEN-LAST:event_searchButtonActionPerformed private void allDataSourcesRadioButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_allDataSourcesRadioButtonActionPerformed