Autopsy  4.4
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 
40  public NewCaseVisualPanel2() {
41  initComponents();
42  }
43 
50  @Override
51  public String getName() {
52  return NbBundle.getMessage(this.getClass(), "NewCaseVisualPanel2.getName.text");
53  }
54 
60  @SuppressWarnings("unchecked")
61  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
62  private void initComponents() {
63 
64  caseNumberTextField = new javax.swing.JTextField();
65  examinerTextField = new javax.swing.JTextField();
66  caseNumberLabel = new javax.swing.JLabel();
67  examinerLabel = new javax.swing.JLabel();
68  optionalLabel = new javax.swing.JLabel();
69 
70  caseNumberTextField.setFont(caseNumberTextField.getFont().deriveFont(caseNumberTextField.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
71  caseNumberTextField.setText(org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class, "NewCaseVisualPanel2.caseNumberTextField.text")); // NOI18N
72 
73  examinerTextField.setFont(examinerTextField.getFont().deriveFont(examinerTextField.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
74  examinerTextField.setText(org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class, "NewCaseVisualPanel2.examinerTextField.text")); // NOI18N
75 
76  caseNumberLabel.setFont(caseNumberLabel.getFont().deriveFont(caseNumberLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
77  caseNumberLabel.setText(org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class, "NewCaseVisualPanel2.caseNumberLabel.text")); // NOI18N
78 
79  examinerLabel.setFont(examinerLabel.getFont().deriveFont(examinerLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
80  examinerLabel.setText(org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class, "NewCaseVisualPanel2.examinerLabel.text")); // NOI18N
81 
82  optionalLabel.setFont(optionalLabel.getFont().deriveFont(optionalLabel.getFont().getStyle() | java.awt.Font.BOLD, 14));
83  optionalLabel.setText(org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class, "NewCaseVisualPanel2.optionalLabel.text")); // NOI18N
84 
85  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
86  this.setLayout(layout);
87  layout.setHorizontalGroup(
88  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
89  .addGroup(layout.createSequentialGroup()
90  .addContainerGap()
91  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
92  .addComponent(optionalLabel)
93  .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
94  .addComponent(caseNumberLabel)
95  .addGap(25, 25, 25)
96  .addComponent(caseNumberTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE))
97  .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
98  .addComponent(examinerLabel)
99  .addGap(45, 45, 45)
100  .addComponent(examinerTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE)))
101  .addContainerGap())
102  );
103  layout.setVerticalGroup(
104  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
105  .addGroup(layout.createSequentialGroup()
106  .addContainerGap()
107  .addComponent(optionalLabel)
108  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
109  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
110  .addComponent(caseNumberLabel)
111  .addComponent(caseNumberTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
112  .addGap(18, 18, 18)
113  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
114  .addComponent(examinerLabel)
115  .addComponent(examinerTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
116  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
117  );
118  }// </editor-fold>//GEN-END:initComponents
119  // Variables declaration - do not modify//GEN-BEGIN:variables
120  private javax.swing.JLabel caseNumberLabel;
121  private javax.swing.JTextField caseNumberTextField;
122  private javax.swing.JLabel examinerLabel;
123  private javax.swing.JTextField examinerTextField;
124  private javax.swing.JLabel optionalLabel;
125  // End of variables declaration//GEN-END:variables
126 
127  String getCaseNumber() {
128  return caseNumberTextField.getText();
129  }
130 
131  String getExaminer() {
132  return examinerTextField.getText();
133  }
134 
135 }

Copyright © 2012-2016 Basis Technology. Generated on: Tue Jun 13 2017
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.