Autopsy  4.14.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
FileSearchDialog.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011-2018 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.filesearch;
20 
21 import java.awt.event.ActionEvent;
22 import java.awt.event.ActionListener;
23 import org.openide.util.NbBundle;
24 import org.openide.windows.WindowManager;
25 
29 @SuppressWarnings("PMD.SingularField") // UI widgets cause lots of false positives
30 class FileSearchDialog extends javax.swing.JDialog {
31 
35  public FileSearchDialog() {
36  super(WindowManager.getDefault().getMainWindow(),
37  NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.frame.msg"), true);
38  initComponents();
39 
40  setResizable(false);
41  this.setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
42  fileSearchPanel1.addListenerToAll(new ActionListener() {
43 
44  @Override
45  public void actionPerformed(ActionEvent e) {
46  dispose();
47  }
48  });
49  }
50 
56  @SuppressWarnings("unchecked")
57  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
58  private void initComponents() {
59 
60  fileSearchPanel1 = new org.sleuthkit.autopsy.filesearch.FileSearchPanel();
61 
62  setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
63 
64  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
65  getContentPane().setLayout(layout);
66  layout.setHorizontalGroup(
67  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
68  .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)
69  );
70  layout.setVerticalGroup(
71  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
72  .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
73  );
74 
75  pack();
76  }// </editor-fold>//GEN-END:initComponents
77 
78  // Variables declaration - do not modify//GEN-BEGIN:variables
79  private org.sleuthkit.autopsy.filesearch.FileSearchPanel fileSearchPanel1;
80  // End of variables declaration//GEN-END:variables
81 }
82 

Copyright © 2012-2020 Basis Technology. Generated on: Wed Apr 8 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.