Autopsy  3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
NewCaseVisualPanel2.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 
20 /*
21  * NewCaseVisualPanel2.java
22  *
23  * Created on Mar 7, 2012, 11:01:48 AM
24  */
25 package org.sleuthkit.autopsy.casemodule;
26 
27 import org.openide.util.NbBundle;
28 
29 import java.awt.*;
30 
35  class NewCaseVisualPanel2 extends javax.swing.JPanel {
36 
38  public NewCaseVisualPanel2() {
39  initComponents();
40  }
41 
48  @Override
49  public String getName() {
50  return NbBundle.getMessage(this.getClass(), "NewCaseVisualPanel2.getName.text");
51  }
52 
58  @SuppressWarnings("unchecked")
59  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
60  private void initComponents() {
61 
62  caseNumberTextField = new javax.swing.JTextField();
63  examinerTextField = new javax.swing.JTextField();
64  caseNumberLabel = new javax.swing.JLabel();
65  examinerLabel = new javax.swing.JLabel();
66  optionalLabel = new javax.swing.JLabel();
67 
68  caseNumberTextField.setText(org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class, "NewCaseVisualPanel2.caseNumberTextField.text")); // NOI18N
69 
70  examinerTextField.setText(org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class, "NewCaseVisualPanel2.examinerTextField.text")); // NOI18N
71 
72  caseNumberLabel.setText(org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class, "NewCaseVisualPanel2.caseNumberLabel.text")); // NOI18N
73 
74  examinerLabel.setText(org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class, "NewCaseVisualPanel2.examinerLabel.text")); // NOI18N
75 
76  optionalLabel.setFont(optionalLabel.getFont().deriveFont(Font.BOLD, 14));
77  optionalLabel.setText(org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class, "NewCaseVisualPanel2.optionalLabel.text")); // NOI18N
78 
79  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
80  this.setLayout(layout);
81  layout.setHorizontalGroup(
82  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
83  .addGroup(layout.createSequentialGroup()
84  .addContainerGap()
85  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
86  .addComponent(optionalLabel)
87  .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
88  .addComponent(caseNumberLabel)
89  .addGap(25, 25, 25)
90  .addComponent(caseNumberTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE))
91  .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
92  .addComponent(examinerLabel)
93  .addGap(45, 45, 45)
94  .addComponent(examinerTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE)))
95  .addContainerGap())
96  );
97  layout.setVerticalGroup(
98  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
99  .addGroup(layout.createSequentialGroup()
100  .addContainerGap()
101  .addComponent(optionalLabel)
102  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
103  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
104  .addComponent(caseNumberLabel)
105  .addComponent(caseNumberTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
106  .addGap(18, 18, 18)
107  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
108  .addComponent(examinerLabel)
109  .addComponent(examinerTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
110  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
111  );
112  }// </editor-fold>//GEN-END:initComponents
113  // Variables declaration - do not modify//GEN-BEGIN:variables
114  private javax.swing.JLabel caseNumberLabel;
115  private javax.swing.JTextField caseNumberTextField;
116  private javax.swing.JLabel examinerLabel;
117  private javax.swing.JTextField examinerTextField;
118  private javax.swing.JLabel optionalLabel;
119  // End of variables declaration//GEN-END:variables
120 
121  String getCaseNumber() {
122  return caseNumberTextField.getText();
123  }
124 
125  String getExaminer() {
126  return examinerTextField.getText();
127  }
128 
129 
130 
131 }

Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.