5 package org.sleuthkit.autopsy.corecomponents;
7 import java.awt.Component;
8 import java.awt.Dimension;
9 import java.awt.Toolkit;
10 import javax.swing.JFrame;
11 import javax.swing.JPanel;
12 import org.openide.windows.WindowManager;
32 super((JFrame) WindowManager.getDefault().getMainWindow(),
true);
33 setResizable(resizable);
35 this.setIconImage(null);
46 this.setTitle(panel.getName());
48 panel.setAlignmentX(Component.CENTER_ALIGNMENT);
52 Dimension screenDimension = Toolkit.getDefaultToolkit().getScreenSize();
54 int w = this.getSize().width;
55 int h = this.getSize().height;
58 setLocation((screenDimension.width - w) / 2, (screenDimension.height - h) / 2);
60 this.setVisible(
true);
75 @SuppressWarnings(
"unchecked")
79 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
80 getContentPane().setLayout(
new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.LINE_AXIS));
void display(JPanel panel)
AdvancedConfigurationCleanDialog(boolean resizable)
AdvancedConfigurationCleanDialog()