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;
47 super(
new JFrame(),
true);
48 setResizable(resizable);
50 this.setIconImage(null);
56 this.setTitle(panel.getName());
59 panel.setAlignmentX(Component.CENTER_ALIGNMENT);
64 Dimension screenDimension = Toolkit.getDefaultToolkit().getScreenSize();
66 int w = this.getSize().width;
67 int h = this.getSize().height;
70 setLocation((screenDimension.width - w) / 2, (screenDimension.height - h) / 2);
72 this.setVisible(
true);
80 @SuppressWarnings(
"unchecked")
85 filler1 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4));
86 jPanel1 =
new javax.swing.JPanel();
89 filler2 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4));
91 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
92 getContentPane().setLayout(
new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.PAGE_AXIS));
96 jPanel1.setMaximumSize(
new java.awt.Dimension(4000, 27));
97 jPanel1.setMinimumSize(
new java.awt.Dimension(100, 27));
98 jPanel1.setPreferredSize(
new java.awt.Dimension(400, 27));
103 cancelButton.addActionListener(
new java.awt.event.ActionListener() {
104 public void actionPerformed(java.awt.event.ActionEvent evt) {
109 javax.swing.GroupLayout jPanel1Layout =
new javax.swing.GroupLayout(
jPanel1);
110 jPanel1.setLayout(jPanel1Layout);
111 jPanel1Layout.setHorizontalGroup(
112 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
113 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
114 .addContainerGap(242, Short.MAX_VALUE)
115 .addComponent(
applyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
116 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
117 .addComponent(
cancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
120 jPanel1Layout.setVerticalGroup(
121 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
122 .addGroup(jPanel1Layout.createSequentialGroup()
123 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
126 .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)