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;
51 super(
new JFrame(),
true);
52 setResizable(resizable);
54 this.setIconImage(null);
60 this.setTitle(panel.getName());
62 panel.setAlignmentX(Component.CENTER_ALIGNMENT);
67 Dimension screenDimension = Toolkit.getDefaultToolkit().getScreenSize();
69 int w = this.getSize().width;
70 int h = this.getSize().height;
73 setLocation((screenDimension.width - w) / 2, (screenDimension.height - h) / 2);
75 this.setVisible(
true);
83 @SuppressWarnings(
"unchecked")
88 filler1 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4));
89 jPanel1 =
new javax.swing.JPanel();
92 filler2 =
new javax.swing.Box.Filler(
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4),
new java.awt.Dimension(0, 4));
94 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
95 getContentPane().setLayout(
new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.PAGE_AXIS));
99 jPanel1.setMaximumSize(
new java.awt.Dimension(4000, 27));
100 jPanel1.setMinimumSize(
new java.awt.Dimension(100, 27));
101 jPanel1.setPreferredSize(
new java.awt.Dimension(400, 27));
106 cancelButton.addActionListener(
new java.awt.event.ActionListener() {
107 public void actionPerformed(java.awt.event.ActionEvent evt) {
112 javax.swing.GroupLayout jPanel1Layout =
new javax.swing.GroupLayout(
jPanel1);
113 jPanel1.setLayout(jPanel1Layout);
114 jPanel1Layout.setHorizontalGroup(
115 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
116 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
117 .addContainerGap(242, Short.MAX_VALUE)
118 .addComponent(
applyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
119 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
120 .addComponent(
cancelButton, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
123 jPanel1Layout.setVerticalGroup(
124 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
125 .addGroup(jPanel1Layout.createSequentialGroup()
126 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
129 .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)