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;
27 super(
new JFrame(),
true);
28 setResizable(resizable);
30 this.setIconImage(null);
40 this.setTitle(panel.getName());
42 panel.setAlignmentX(Component.CENTER_ALIGNMENT);
46 Dimension screenDimension = Toolkit.getDefaultToolkit().getScreenSize();
48 int w = this.getSize().width;
49 int h = this.getSize().height;
52 setLocation((screenDimension.width - w) / 2, (screenDimension.height - h) / 2);
54 this.setVisible(
true);
69 @SuppressWarnings(
"unchecked")
73 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
74 getContentPane().setLayout(
new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.LINE_AXIS));
void display(JPanel panel)
AdvancedConfigurationCleanDialog(boolean resizable)
AdvancedConfigurationCleanDialog()