19 package org.sleuthkit.autopsy.casemodule;
21 import java.awt.Frame;
22 import javax.swing.JDialog;
27 @SuppressWarnings(
"PMD.SingularField")
46 @SuppressWarnings(
"unchecked")
48 private
void initComponents() {
50 jScrollPane1 =
new javax.swing.JScrollPane();
51 errorsText =
new javax.swing.JTextArea();
52 copyButton =
new javax.swing.JButton();
53 closeButton =
new javax.swing.JButton();
55 setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
60 errorsText.setBackground(
new java.awt.Color(240, 240, 240));
61 errorsText.setColumns(20);
62 errorsText.setEditable(
false);
63 errorsText.setRows(5);
64 jScrollPane1.setViewportView(errorsText);
66 org.openide.awt.Mnemonics.setLocalizedText(copyButton,
org.openide.util.NbBundle.getMessage(
AddImageErrorsDialog.class,
"AddImageErrorsDialog.copyButton.text"));
67 copyButton.setToolTipText(
org.openide.util.NbBundle.getMessage(
AddImageErrorsDialog.class,
"AddImageErrorsDialog.copyButton.toolTipText"));
68 copyButton.addActionListener(
new java.awt.event.ActionListener() {
69 public void actionPerformed(java.awt.event.ActionEvent evt) {
70 copyButtonActionPerformed(evt);
74 org.openide.awt.Mnemonics.setLocalizedText(closeButton,
org.openide.util.NbBundle.getMessage(
AddImageErrorsDialog.class,
"AddImageErrorsDialog.closeButton.text"));
75 closeButton.setToolTipText(
org.openide.util.NbBundle.getMessage(
AddImageErrorsDialog.class,
"AddImageErrorsDialog.closeButton.toolTipText"));
76 closeButton.addActionListener(
new java.awt.event.ActionListener() {
77 public void actionPerformed(java.awt.event.ActionEvent evt) {
78 closeButtonActionPerformed(evt);
82 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(getContentPane());
83 getContentPane().setLayout(layout);
84 layout.setHorizontalGroup(
85 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
86 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 485, Short.MAX_VALUE)
87 .addGroup(layout.createSequentialGroup()
88 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
89 .addComponent(copyButton)
91 .addComponent(closeButton))
93 layout.setVerticalGroup(
94 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
95 .addGroup(layout.createSequentialGroup()
96 .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE)
98 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
99 .addComponent(closeButton)
100 .addComponent(copyButton)))
107 errorsText.selectAll();
116 errorsText.append(errors +
"\n");
javax.swing.JScrollPane jScrollPane1
AddImageErrorsDialog(Frame parent, boolean modal)
javax.swing.JTextArea errorsText
void copyButtonActionPerformed(java.awt.event.ActionEvent evt)
void appendErrors(String errors)
javax.swing.JButton closeButton
void closeButtonActionPerformed(java.awt.event.ActionEvent evt)
javax.swing.JButton copyButton