25 package org.sleuthkit.autopsy.corecomponents;
27 import java.awt.Component;
28 import java.awt.Dimension;
29 import java.awt.Toolkit;
30 import java.awt.event.ActionListener;
31 import javax.swing.JFrame;
32 import javax.swing.JPanel;
33 import org.openide.windows.WindowManager;
52 super((JFrame) WindowManager.getDefault().getMainWindow(),
true);
53 setResizable(resizable);
55 this.setIconImage(null);
61 this.setTitle(panel.getName());
63 panel.setAlignmentX(Component.CENTER_ALIGNMENT);
67 this.setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
68 this.setVisible(
true);
76 @SuppressWarnings(
"unchecked")
81 filler1 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4));
82 jPanel1 =
new javax.swing.JPanel();
85 filler2 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4));
87 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
88 getContentPane().setLayout(
new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.PAGE_AXIS));
92 jPanel1.setMaximumSize(
new java.awt.Dimension(4000, 27));
93 jPanel1.setMinimumSize(
new java.awt.Dimension(100, 27));
94 jPanel1.setPreferredSize(
new java.awt.Dimension(400, 27));
99 cancelButton.addActionListener(
new java.awt.event.ActionListener() {
100 public void actionPerformed(java.awt.event.ActionEvent evt) {
105 javax.swing.GroupLayout jPanel1Layout =
new javax.swing.GroupLayout(
jPanel1);
106 jPanel1.setLayout(jPanel1Layout);
107 jPanel1Layout.setHorizontalGroup(
108 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
109 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
110 .addContainerGap(242, Short.MAX_VALUE)
111 .addComponent(
applyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
112 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
113 .addComponent(
cancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
116 jPanel1Layout.setVerticalGroup(
117 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
118 .addGroup(jPanel1Layout.createSequentialGroup()
119 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
122 .addGap(0, 4, Short.MAX_VALUE))
void display(JPanel panel)
javax.swing.JPanel jPanel1
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)