Autopsy  4.6.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
CommonFilesDialog.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 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.commonfilesearch;
20 
21 import javax.swing.JFrame;
22 import javax.swing.SwingUtilities;
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 public final class CommonFilesDialog extends javax.swing.JDialog {
31 
32  private static final long serialVersionUID = 1L;
33 
37  @NbBundle.Messages({
38  "CommonFilesDialog.frame.title=Find Common Files",
39  "CommonFilesDialog.frame.msg=Find Common Files"})
40  public CommonFilesDialog() {
41  super(new JFrame(Bundle.CommonFilesDialog_frame_title()),
42  Bundle.CommonFilesDialog_frame_msg(), true);
43  initComponents();
44 
45  this.setResizable(false);
46  this.setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
47  }
48 
54  @SuppressWarnings("unchecked")
55  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
56  private void initComponents() {
57 
58  commonFilesPanel1 = new org.sleuthkit.autopsy.commonfilesearch.CommonFilesPanel();
59 
60  setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
61  setSize(new java.awt.Dimension(340, 320));
62  addWindowListener(new java.awt.event.WindowAdapter() {
63  public void windowClosed(java.awt.event.WindowEvent evt) {
64  formWindowClosed(evt);
65  }
66  });
67 
68  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
69  getContentPane().setLayout(layout);
70  layout.setHorizontalGroup(
71  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
72  .addGroup(layout.createSequentialGroup()
73  .addComponent(commonFilesPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
74  .addGap(0, 0, Short.MAX_VALUE))
75  );
76  layout.setVerticalGroup(
77  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
78  .addGroup(layout.createSequentialGroup()
79  .addComponent(commonFilesPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
80  .addGap(0, 0, Short.MAX_VALUE))
81  );
82 
83  pack();
84  setLocationRelativeTo(null);
85  }// </editor-fold>//GEN-END:initComponents
86 
87  private void formWindowClosed(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosed
88  SwingUtilities.windowForComponent(this).dispose();
89  }//GEN-LAST:event_formWindowClosed
90 
91  // Variables declaration - do not modify//GEN-BEGIN:variables
93  // End of variables declaration//GEN-END:variables
94 }
org.sleuthkit.autopsy.commonfilesearch.CommonFilesPanel commonFilesPanel1

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.