Autopsy  4.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
AddImageErrorsDialog.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011 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  */
19 package org.sleuthkit.autopsy.casemodule;
20 
24 public class AddImageErrorsDialog extends javax.swing.JDialog {
25 
29  public AddImageErrorsDialog(java.awt.Frame parent, boolean modal) {
30  super(parent, modal);
32  }
33 
39  @SuppressWarnings("unchecked")
40  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
41  private void initComponents() {
42 
43  jScrollPane1 = new javax.swing.JScrollPane();
44  errorsText = new javax.swing.JTextArea();
45  copyButton = new javax.swing.JButton();
46  closeButton = new javax.swing.JButton();
47 
48  setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
49  setTitle(org.openide.util.NbBundle.getMessage(AddImageErrorsDialog.class, "AddImageErrorsDialog.title")); // NOI18N
50  setIconImage(null);
51  setIconImages(null);
52 
53  errorsText.setBackground(new java.awt.Color(240, 240, 240));
54  errorsText.setColumns(20);
55  errorsText.setEditable(false);
56  errorsText.setRows(5);
57  jScrollPane1.setViewportView(errorsText);
58 
59  org.openide.awt.Mnemonics.setLocalizedText(copyButton, org.openide.util.NbBundle.getMessage(AddImageErrorsDialog.class, "AddImageErrorsDialog.copyButton.text")); // NOI18N
60  copyButton.setToolTipText(org.openide.util.NbBundle.getMessage(AddImageErrorsDialog.class, "AddImageErrorsDialog.copyButton.toolTipText")); // NOI18N
61  copyButton.addActionListener(new java.awt.event.ActionListener() {
62  public void actionPerformed(java.awt.event.ActionEvent evt) {
64  }
65  });
66 
67  org.openide.awt.Mnemonics.setLocalizedText(closeButton, org.openide.util.NbBundle.getMessage(AddImageErrorsDialog.class, "AddImageErrorsDialog.closeButton.text")); // NOI18N
68  closeButton.setToolTipText(org.openide.util.NbBundle.getMessage(AddImageErrorsDialog.class, "AddImageErrorsDialog.closeButton.toolTipText")); // NOI18N
69  closeButton.addActionListener(new java.awt.event.ActionListener() {
70  public void actionPerformed(java.awt.event.ActionEvent evt) {
72  }
73  });
74 
75  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
76  getContentPane().setLayout(layout);
77  layout.setHorizontalGroup(
78  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
79  .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 485, Short.MAX_VALUE)
80  .addGroup(layout.createSequentialGroup()
81  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
82  .addComponent(copyButton)
83  .addGap(18, 18, 18)
84  .addComponent(closeButton))
85  );
86  layout.setVerticalGroup(
87  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
88  .addGroup(layout.createSequentialGroup()
89  .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)
90  .addGap(0, 0, 0)
91  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
92  .addComponent(closeButton)
93  .addComponent(copyButton)))
94  );
95 
96  pack();
97  }// </editor-fold>//GEN-END:initComponents
98 
99  private void copyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_copyButtonActionPerformed
100  errorsText.selectAll();
101  errorsText.copy();
102  }//GEN-LAST:event_copyButtonActionPerformed
103 
104  private void closeButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closeButtonActionPerformed
105  setVisible(false);
106  }//GEN-LAST:event_closeButtonActionPerformed
107 
108  public void appendErrors(String errors) {
109  errorsText.append(errors + "\n");
110  }
111  // Variables declaration - do not modify//GEN-BEGIN:variables
112  private javax.swing.JButton closeButton;
113  private javax.swing.JButton copyButton;
114  private javax.swing.JTextArea errorsText;
115  private javax.swing.JScrollPane jScrollPane1;
116  // End of variables declaration//GEN-END:variables
117 }
void copyButtonActionPerformed(java.awt.event.ActionEvent evt)
void closeButtonActionPerformed(java.awt.event.ActionEvent evt)
AddImageErrorsDialog(java.awt.Frame parent, boolean modal)

Copyright © 2012-2015 Basis Technology. Generated on: Wed Apr 6 2016
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.