19 package org.sleuthkit.autopsy.corecomponents;
21 import java.awt.Component;
22 import java.awt.event.ActionListener;
23 import javax.swing.JFrame;
24 import javax.swing.JPanel;
25 import org.openide.windows.WindowManager;
30 @SuppressWarnings(
"PMD.SingularField")
46 super((JFrame) WindowManager.getDefault().getMainWindow(),
true);
47 setResizable(resizable);
49 this.setIconImage(null);
55 this.setTitle(panel.getName());
57 panel.setAlignmentX(Component.CENTER_ALIGNMENT);
61 this.setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
62 this.setVisible(
true);
70 @SuppressWarnings(
"unchecked")
72 private
void initComponents() {
73 java.awt.GridBagConstraints gridBagConstraints;
75 jSeparator1 =
new javax.swing.JSeparator();
76 filler1 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4));
77 jPanel1 =
new javax.swing.JPanel();
78 applyButton =
new javax.swing.JButton();
79 cancelButton =
new javax.swing.JButton();
80 filler3 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 0),
new java.awt.Dimension(0, 0),
new java.awt.Dimension(32767, 0));
81 filler2 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4));
83 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
84 getContentPane().setLayout(
new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.PAGE_AXIS));
85 getContentPane().add(jSeparator1);
86 getContentPane().add(filler1);
88 jPanel1.setMaximumSize(
new java.awt.Dimension(4000, 27));
89 jPanel1.setMinimumSize(
new java.awt.Dimension(100, 27));
90 jPanel1.setPreferredSize(
new java.awt.Dimension(400, 27));
91 jPanel1.setLayout(
new java.awt.GridBagLayout());
94 applyButton.setMaximumSize(
new java.awt.Dimension(150, 25));
95 applyButton.setMinimumSize(
new java.awt.Dimension(71, 25));
96 applyButton.setPreferredSize(
new java.awt.Dimension(71, 25));
97 gridBagConstraints =
new java.awt.GridBagConstraints();
98 gridBagConstraints.gridx = 1;
99 gridBagConstraints.gridy = 0;
100 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
101 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
102 gridBagConstraints.insets =
new java.awt.Insets(0, 0, 2, 0);
103 jPanel1.add(applyButton, gridBagConstraints);
106 cancelButton.setMaximumSize(
new java.awt.Dimension(150, 25));
107 cancelButton.addActionListener(
new java.awt.event.ActionListener() {
108 public void actionPerformed(java.awt.event.ActionEvent evt) {
109 cancelButtonActionPerformed(evt);
112 gridBagConstraints =
new java.awt.GridBagConstraints();
113 gridBagConstraints.gridx = 2;
114 gridBagConstraints.gridy = 0;
115 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
116 gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
117 gridBagConstraints.insets =
new java.awt.Insets(0, 7, 2, 12);
118 jPanel1.add(cancelButton, gridBagConstraints);
119 gridBagConstraints =
new java.awt.GridBagConstraints();
120 gridBagConstraints.gridx = 0;
121 gridBagConstraints.gridy = 0;
122 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
123 gridBagConstraints.weightx = 1.0;
124 jPanel1.add(filler3, gridBagConstraints);
126 getContentPane().add(jPanel1);
127 getContentPane().add(filler2);
147 this.applyButton.addActionListener(l);
void display(JPanel panel)
javax.swing.JPanel jPanel1
javax.swing.Box.Filler filler3
javax.swing.Box.Filler filler1
javax.swing.Box.Filler filler2
void addApplyButtonListener(ActionListener l)
javax.swing.JButton applyButton
AdvancedConfigurationDialog()
void cancelButtonActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JButton cancelButton
javax.swing.JSeparator jSeparator1
AdvancedConfigurationDialog(boolean resizable)