Autopsy  4.6.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 
20 /*
21  * FileSearchDialog.java
22  *
23  * Created on Mar 5, 2012, 1:57:33 PM
24  */
25 package org.sleuthkit.autopsy.filesearch;
26 
27 import org.openide.util.NbBundle;
28 
29 import java.awt.event.ActionEvent;
30 import java.awt.event.ActionListener;
31 import javax.swing.JFrame;
32 import org.openide.windows.WindowManager;
33 
37 class FileSearchDialog extends javax.swing.JDialog {
38 
42  public FileSearchDialog() {
43  super(new JFrame(NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.frame.title")),
44  NbBundle.getMessage(FileSearchDialog.class, "FileSearchDialog.frame.msg"), true);
45  initComponents();
46 
47  setResizable(false);
48  this.setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
49  fileSearchPanel1.addListenerToAll(new ActionListener() {
50 
51  @Override
52  public void actionPerformed(ActionEvent e) {
53  dispose();
54  }
55  });
56  }
57 
63  @SuppressWarnings("unchecked")
64  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
65  private void initComponents() {
66 
67  fileSearchPanel1 = new org.sleuthkit.autopsy.filesearch.FileSearchPanel();
68 
69  setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
70 
71  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
72  getContentPane().setLayout(layout);
73  layout.setHorizontalGroup(
74  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
75  .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)
76  );
77  layout.setVerticalGroup(
78  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
79  .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)
80  );
81 
82  pack();
83  }// </editor-fold>//GEN-END:initComponents
84 
85  // Variables declaration - do not modify//GEN-BEGIN:variables
86  private org.sleuthkit.autopsy.filesearch.FileSearchPanel fileSearchPanel1;
87  // End of variables declaration//GEN-END:variables
88 }
89 

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