25 package org.sleuthkit.autopsy.filesearch;
27 import org.openide.util.NbBundle;
29 import java.awt.Dimension;
30 import java.awt.Toolkit;
31 import java.awt.event.ActionEvent;
32 import java.awt.event.ActionListener;
33 import javax.swing.JFrame;
38 class FileSearchDialog
extends javax.swing.JDialog {
41 public FileSearchDialog() {
42 super(
new JFrame(NbBundle.getMessage(FileSearchDialog.class,
"FileSearchDialog.frame.title")),
43 NbBundle.getMessage(FileSearchDialog.class,
"FileSearchDialog.frame.msg"),
true);
47 Dimension screenDimension = Toolkit.getDefaultToolkit().getScreenSize();
48 double w = getSize().getWidth();
49 double h = getSize().getHeight();
50 setLocation((
int) ((screenDimension.getWidth() - w) / 2), (int) ((screenDimension.getHeight() - h) / 2));
51 fileSearchPanel1.addListenerToAll(
new ActionListener() {
54 public void actionPerformed(ActionEvent e) {
65 @SuppressWarnings(
"unchecked")
67 private
void initComponents() {
71 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
73 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(getContentPane());
74 getContentPane().setLayout(layout);
75 layout.setHorizontalGroup(
76 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
77 .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 338, Short.MAX_VALUE)
79 layout.setVerticalGroup(
80 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
81 .addComponent(fileSearchPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 487, Short.MAX_VALUE)