25 package org.sleuthkit.autopsy.casemodule;
27 import org.openide.util.NbBundle;
35 class NewCaseVisualPanel2
extends javax.swing.JPanel {
38 public NewCaseVisualPanel2() {
49 public String getName() {
50 return NbBundle.getMessage(this.getClass(),
"NewCaseVisualPanel2.getName.text");
58 @SuppressWarnings(
"unchecked")
60 private
void initComponents() {
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();
68 caseNumberTextField.setText(
org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class,
"NewCaseVisualPanel2.caseNumberTextField.text"));
70 examinerTextField.setText(
org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class,
"NewCaseVisualPanel2.examinerTextField.text"));
72 caseNumberLabel.setText(
org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class,
"NewCaseVisualPanel2.caseNumberLabel.text"));
74 examinerLabel.setText(
org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class,
"NewCaseVisualPanel2.examinerLabel.text"));
76 optionalLabel.setFont(optionalLabel.getFont().deriveFont(Font.BOLD, 14));
77 optionalLabel.setText(
org.openide.util.NbBundle.getMessage(NewCaseVisualPanel2.class,
"NewCaseVisualPanel2.optionalLabel.text"));
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()
85 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
86 .addComponent(optionalLabel)
87 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
88 .addComponent(caseNumberLabel)
90 .addComponent(caseNumberTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE))
91 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
92 .addComponent(examinerLabel)
94 .addComponent(examinerTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE)))
97 layout.setVerticalGroup(
98 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
99 .addGroup(layout.createSequentialGroup()
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))
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))
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;
121 String getCaseNumber() {
122 return caseNumberTextField.getText();
125 String getExaminer() {
126 return examinerTextField.getText();