25 package org.sleuthkit.autopsy.casemodule;
27 import org.openide.util.NbBundle;
35 class NewCaseVisualPanel2
extends javax.swing.JPanel {
40 public NewCaseVisualPanel2() {
51 public String getName() {
52 return NbBundle.getMessage(this.getClass(),
"NewCaseVisualPanel2.getName.text");
60 @SuppressWarnings(
"unchecked")
62 private
void initComponents() {
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();
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"));
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"));
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"));
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"));
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"));
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()
91 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
92 .addComponent(optionalLabel)
93 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
94 .addComponent(caseNumberLabel)
96 .addComponent(caseNumberTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE))
97 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
98 .addComponent(examinerLabel)
100 .addComponent(examinerTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 246, Short.MAX_VALUE)))
103 layout.setVerticalGroup(
104 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
105 .addGroup(layout.createSequentialGroup()
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))
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))
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;
127 String getCaseNumber() {
128 return caseNumberTextField.getText();
131 String getExaminer() {
132 return examinerTextField.getText();