Autopsy  4.7.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 javax.swing.JFrame;
24 import org.openide.util.NbBundle;
25 import org.openide.windows.WindowManager;
26 
30 @SuppressWarnings("PMD.SingularField") // UI widgets cause lots of false positives
31 class FileSearchDialog extends javax.swing.JDialog {
32 
36  public FileSearchDialog() {
37  super(new JFrame(NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.frame.title")),
38  NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.frame.msg"), true);
39  initComponents();
40 
41  setResizable(false);
42  this.setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
43  fileSearchPanel1.addListenerToAll(new ActionListener() {
44 
45  @Override
46  public void actionPerformed(ActionEvent e) {
47  dispose();
48  }
49  });
50  }
51 
57  @SuppressWarnings("unchecked")
58  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
59  private void initComponents() {
60 
61  fileSearchPanel1 = new org.sleuthkit.autopsy.filesearch.FileSearchPanel();
62 
63  setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
64 
65  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
66  getContentPane().setLayout(layout);
67  layout.setHorizontalGroup(
68  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
69  .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)
70  );
71  layout.setVerticalGroup(
72  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
73  .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
74  );
75 
76  pack();
77  }// </editor-fold>//GEN-END:initComponents
78 
79  // Variables declaration - do not modify//GEN-BEGIN:variables
80  private org.sleuthkit.autopsy.filesearch.FileSearchPanel fileSearchPanel1;
81  // End of variables declaration//GEN-END:variables
82 }
83 

Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.