19 package org.sleuthkit.autopsy.commonfilesearch;
21 import javax.swing.JFrame;
22 import javax.swing.SwingUtilities;
23 import org.openide.util.NbBundle;
24 import org.openide.windows.WindowManager;
29 @SuppressWarnings(
"PMD.SingularField")
32 private static final long serialVersionUID = 1L;
38 "CommonFilesDialog.frame.title=Find Common Files",
39 "CommonFilesDialog.frame.msg=Find Common Files"})
41 super(
new JFrame(Bundle.CommonFilesDialog_frame_title()),
42 Bundle.CommonFilesDialog_frame_msg(),
true);
45 this.setResizable(
false);
46 this.setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
54 @SuppressWarnings(
"unchecked")
56 private
void initComponents() {
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);
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))
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))
84 setLocationRelativeTo(null);
88 SwingUtilities.windowForComponent(
this).dispose();
void formWindowClosed(java.awt.event.WindowEvent evt)
org.sleuthkit.autopsy.commonfilesearch.CommonFilesPanel commonFilesPanel1