Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
AdvancedConfigurationCleanDialog.java
Go to the documentation of this file.
1/*
2 * Autopsy Forensic Browser
3 *
4 * Copyright 2011-2018 Basis Technology Corp.
5 * Contact: carrier <at> sleuthkit <dot> org
6 *
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
10 *
11 * http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 */
19package org.sleuthkit.autopsy.corecomponents;
20
21import java.awt.Component;
22import javax.swing.JFrame;
23import javax.swing.JPanel;
24import org.openide.windows.WindowManager;
25
31@SuppressWarnings("PMD.SingularField") // UI widgets cause lots of false positives
32public class AdvancedConfigurationCleanDialog extends javax.swing.JDialog {
33
38 this(false);
39 }
40
46 public AdvancedConfigurationCleanDialog(boolean resizable) {
47 super((JFrame) WindowManager.getDefault().getMainWindow(), true);
48 setResizable(resizable);
49 if (resizable) {
50 this.setIconImage(null);
51 }
53 }
54
60 public void display(JPanel panel) {
61 this.setTitle(panel.getName());
62
63 panel.setAlignmentX(Component.CENTER_ALIGNMENT);
64 this.add(panel, 0);
65 this.pack();
66 this.setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
67 this.setVisible(true);
68 }
69
73 public void close() {
74 this.dispose();
75 }
76
82 @SuppressWarnings("unchecked")
83 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
84 private void initComponents() {
85
86 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
87 getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.LINE_AXIS));
88
89 pack();
90 }// </editor-fold>//GEN-END:initComponents
91
92 // Variables declaration - do not modify//GEN-BEGIN:variables
93 // End of variables declaration//GEN-END:variables
94}

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.