19 package org.sleuthkit.autopsy.casemodule;
21 import java.nio.file.Paths;
22 import java.util.logging.Level;
23 import org.openide.util.NbBundle.Messages;
34 @SuppressWarnings(
"PMD.SingularField")
35 final class CasePropertiesPanel extends javax.swing.JPanel {
37 private static final long serialVersionUID = 1L;
38 private static final Logger logger = Logger.
getLogger(CasePropertiesPanel.class.getName());
47 CasePropertiesPanel(Case caseInfo) {
52 void updateCaseInfo() {
54 theCase = Case.getCurrentCaseThrows();
55 }
catch (NoCurrentCaseException ex) {
56 logger.log(Level.SEVERE,
"Exception while getting open case.", ex);
59 lbCaseNameText.setText(theCase.getDisplayName());
60 lbCaseNumberText.setText(theCase.getNumber());
61 lbExaminerNameText.setText(theCase.getExaminer());
62 lbExaminerPhoneText.setText(theCase.getExaminerPhone());
63 lbExaminerEmailText.setText(theCase.getExaminerEmail());
64 taNotesText.setText(theCase.getCaseNotes());
65 crDateField.setText(theCase.getCreatedDate());
66 caseDirField.setText(theCase.getCaseDirectory());
67 if (Case.CaseType.SINGLE_USER_CASE == theCase.getCaseType()) {
68 dbNameField.setText(Paths.get(theCase.getCaseDirectory(), theCase.getMetadata().getCaseDatabaseName()).toString());
70 dbNameField.setText(theCase.getMetadata().getCaseDatabaseName());
72 boolean cREnabled = EamDb.isEnabled();
73 lbOrganizationNameLabel.setEnabled(cREnabled);
74 lbOrganizationNameText.setEnabled(cREnabled);
75 lbPointOfContactEmailLabel.setEnabled(cREnabled);
76 lbPointOfContactEmailText.setEnabled(cREnabled);
77 lbPointOfContactNameLabel.setEnabled(cREnabled);
78 lbPointOfContactNameText.setEnabled(cREnabled);
79 lbPointOfContactPhoneLabel.setEnabled(cREnabled);
80 lbPointOfContactPhoneText.setEnabled(cREnabled);
81 pnOrganization.setEnabled(cREnabled);
82 EamOrganization currentOrg = null;
85 EamDb dbManager = EamDb.getInstance();
86 if (dbManager != null) {
87 CorrelationCase correlationCase = dbManager.getCase(theCase);
88 if (null == correlationCase) {
89 correlationCase = dbManager.newCase(theCase);
91 currentOrg = correlationCase.getOrg();
93 }
catch (EamDbException ex) {
94 logger.log(Level.SEVERE,
"Unable to access Correlation Case when Central Repo is enabled", ex);
97 if (currentOrg != null) {
98 lbOrganizationNameText.setText(currentOrg.getName());
99 lbPointOfContactNameText.setText(currentOrg.getPocName());
100 lbPointOfContactPhoneText.setText(currentOrg.getPocPhone());
101 lbPointOfContactEmailText.setText(currentOrg.getPocEmail());
103 lbOrganizationNameText.setText(
"");
104 lbPointOfContactNameText.setText(
"");
105 lbPointOfContactPhoneText.setText(
"");
106 lbPointOfContactEmailText.setText(
"");
108 Case.CaseType caseType = theCase.getCaseType();
109 caseTypeField.setText(caseType.getLocalizedDisplayName());
110 lbCaseUIDText.setText(theCase.getName());
115 @Messages({
"CasePropertiesPanel.casePanel.border.title=Case",
116 "CasePropertiesPanel.lbCaseUUIDLabel.text=Case UUID:",
117 "CasePropertiesPanel.examinerPanel.border.title=Examiner",
118 "CasePropertiesPanel.examinerLabel.text=Name:",
119 "CasePropertiesPanel.lbExaminerPhoneLabel.text=Phone:",
120 "CasePropertiesPanel.lbExaminerEmailLabel.text=Email:",
121 "CasePropertiesPanel.lbNotesLabel.text=Notes:",
122 "CasePropertiesPanel.pnOrganization.border.title=Organization",
123 "CasePropertiesPanel.lbOrganizationNameLabel.text=Name:",
124 "CasePropertiesPanel.lbPointOfContactNameLabel.text=Point of Contact:",
125 "CasePropertiesPanel.lbPointOfContactPhoneLabel.text=Phone:",
126 "CasePropertiesPanel.lbPointOfContactEmailLabel.text=Email:"})
142 @SuppressWarnings(
"unchecked")
144 private
void initComponents() {
146 jScrollPane1 =
new javax.swing.JScrollPane();
147 jTextArea1 =
new javax.swing.JTextArea();
148 detailsPanel =
new javax.swing.JPanel();
149 casePanel =
new javax.swing.JPanel();
150 caseNameLabel =
new javax.swing.JLabel();
151 lbDbType =
new javax.swing.JLabel();
152 lbCaseUUIDLabel =
new javax.swing.JLabel();
153 caseTypeField =
new javax.swing.JLabel();
154 dbNameField =
new javax.swing.JLabel();
155 lbDbName =
new javax.swing.JLabel();
156 caseNumberLabel =
new javax.swing.JLabel();
157 caseDirLabel =
new javax.swing.JLabel();
158 caseDirField =
new javax.swing.JLabel();
159 crDateLabel =
new javax.swing.JLabel();
160 crDateField =
new javax.swing.JLabel();
161 lbCaseUIDText =
new javax.swing.JLabel();
162 lbCaseNameText =
new javax.swing.JLabel();
163 lbCaseNumberText =
new javax.swing.JLabel();
164 examinerPanel =
new javax.swing.JPanel();
165 lbExaminerNameText =
new javax.swing.JLabel();
166 lbNotesLabel =
new javax.swing.JLabel();
167 examinerLabel =
new javax.swing.JLabel();
168 caseNotesScrollPane =
new javax.swing.JScrollPane();
169 taNotesText =
new javax.swing.JTextArea();
170 lbExaminerEmailLabel =
new javax.swing.JLabel();
171 lbExaminerPhoneLabel =
new javax.swing.JLabel();
172 lbExaminerPhoneText =
new javax.swing.JLabel();
173 lbExaminerEmailText =
new javax.swing.JLabel();
174 pnOrganization =
new javax.swing.JPanel();
175 lbOrganizationNameLabel =
new javax.swing.JLabel();
176 lbPointOfContactNameLabel =
new javax.swing.JLabel();
177 lbPointOfContactEmailLabel =
new javax.swing.JLabel();
178 lbPointOfContactPhoneLabel =
new javax.swing.JLabel();
179 lbPointOfContactNameText =
new javax.swing.JLabel();
180 lbPointOfContactEmailText =
new javax.swing.JLabel();
181 lbPointOfContactPhoneText =
new javax.swing.JLabel();
182 lbOrganizationNameText =
new javax.swing.JLabel();
184 jTextArea1.setColumns(20);
185 jTextArea1.setRows(5);
186 jScrollPane1.setViewportView(jTextArea1);
188 casePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null,
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.casePanel.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION,
new java.awt.Font(
"Tahoma", 0, 12)));
190 caseNameLabel.setFont(caseNameLabel.getFont().deriveFont(caseNameLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
191 caseNameLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.caseNameLabel.text"));
192 caseNameLabel.setMaximumSize(
new java.awt.Dimension(82, 14));
193 caseNameLabel.setMinimumSize(
new java.awt.Dimension(82, 14));
194 caseNameLabel.setPreferredSize(
new java.awt.Dimension(82, 14));
196 lbDbType.setFont(lbDbType.getFont().deriveFont(lbDbType.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
197 lbDbType.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.lbDbType.text"));
198 lbDbType.setMaximumSize(
new java.awt.Dimension(82, 14));
199 lbDbType.setMinimumSize(
new java.awt.Dimension(82, 14));
200 lbDbType.setPreferredSize(
new java.awt.Dimension(82, 14));
202 lbCaseUUIDLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.lbCaseUUIDLabel.text"));
203 lbCaseUUIDLabel.setMaximumSize(
new java.awt.Dimension(82, 14));
204 lbCaseUUIDLabel.setMinimumSize(
new java.awt.Dimension(82, 14));
205 lbCaseUUIDLabel.setPreferredSize(
new java.awt.Dimension(82, 14));
207 caseTypeField.setMaximumSize(
new java.awt.Dimension(1, 0));
209 dbNameField.setMinimumSize(
new java.awt.Dimension(25, 14));
211 lbDbName.setFont(lbDbName.getFont().deriveFont(lbDbName.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
212 lbDbName.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.lbDbName.text"));
213 lbDbName.setMaximumSize(
new java.awt.Dimension(82, 14));
214 lbDbName.setMinimumSize(
new java.awt.Dimension(82, 14));
215 lbDbName.setPreferredSize(
new java.awt.Dimension(82, 14));
217 caseNumberLabel.setFont(caseNumberLabel.getFont().deriveFont(caseNumberLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
218 caseNumberLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.caseNumberLabel.text"));
220 caseDirLabel.setFont(caseDirLabel.getFont().deriveFont(caseDirLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
221 caseDirLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.caseDirLabel.text"));
222 caseDirLabel.setMaximumSize(
new java.awt.Dimension(82, 14));
223 caseDirLabel.setMinimumSize(
new java.awt.Dimension(82, 14));
224 caseDirLabel.setPreferredSize(
new java.awt.Dimension(82, 14));
226 caseDirField.setMinimumSize(
new java.awt.Dimension(25, 14));
228 crDateLabel.setFont(crDateLabel.getFont().deriveFont(crDateLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
229 crDateLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.crDateLabel.text"));
230 crDateLabel.setMaximumSize(
new java.awt.Dimension(82, 14));
231 crDateLabel.setMinimumSize(
new java.awt.Dimension(82, 14));
232 crDateLabel.setPreferredSize(
new java.awt.Dimension(82, 14));
234 lbCaseNameText.setMinimumSize(
new java.awt.Dimension(25, 14));
236 lbCaseNumberText.setMinimumSize(
new java.awt.Dimension(25, 14));
238 javax.swing.GroupLayout casePanelLayout =
new javax.swing.GroupLayout(casePanel);
239 casePanel.setLayout(casePanelLayout);
240 casePanelLayout.setHorizontalGroup(
241 casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
242 .addGroup(casePanelLayout.createSequentialGroup()
244 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
245 .addGroup(casePanelLayout.createSequentialGroup()
246 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
247 .addComponent(caseNameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
248 .addComponent(caseNumberLabel))
250 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
251 .addComponent(lbCaseNumberText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
252 .addComponent(lbCaseNameText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
253 .addGroup(casePanelLayout.createSequentialGroup()
254 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
255 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
false)
256 .addComponent(lbCaseUUIDLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
257 .addComponent(lbDbType, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
258 .addComponent(caseDirLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
259 .addComponent(crDateLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
260 .addComponent(lbDbName, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
262 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
263 .addComponent(crDateField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
264 .addComponent(caseDirField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
265 .addComponent(caseTypeField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
266 .addComponent(dbNameField, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
267 .addComponent(lbCaseUIDText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
271 casePanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
new java.awt.Component[] {caseDirLabel, caseNameLabel, caseNumberLabel, crDateLabel, lbCaseUUIDLabel, lbDbName, lbDbType});
273 casePanelLayout.setVerticalGroup(
274 casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
275 .addGroup(casePanelLayout.createSequentialGroup()
277 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
278 .addComponent(caseNameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
279 .addComponent(lbCaseNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
280 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
281 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
282 .addComponent(caseNumberLabel, javax.swing.GroupLayout.Alignment.TRAILING)
283 .addComponent(lbCaseNumberText, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
284 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
285 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
286 .addComponent(crDateLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
287 .addComponent(crDateField, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
288 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
289 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
290 .addComponent(caseDirLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
291 .addComponent(caseDirField, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
292 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
293 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
294 .addComponent(caseTypeField, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
295 .addComponent(lbDbType, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
296 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
297 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
298 .addComponent(lbDbName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
299 .addComponent(dbNameField, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
300 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
301 .addGroup(casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
302 .addComponent(lbCaseUUIDLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
303 .addComponent(lbCaseUIDText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
307 examinerPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null,
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.examinerPanel.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION,
new java.awt.Font(
"Tahoma", 0, 12)));
309 lbNotesLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.lbNotesLabel.text"));
310 lbNotesLabel.setMaximumSize(
new java.awt.Dimension(82, 14));
311 lbNotesLabel.setMinimumSize(
new java.awt.Dimension(82, 14));
312 lbNotesLabel.setPreferredSize(
new java.awt.Dimension(82, 14));
313 lbNotesLabel.setRequestFocusEnabled(
false);
315 examinerLabel.setFont(examinerLabel.getFont().deriveFont(examinerLabel.getFont().getStyle() & ~java.awt.Font.BOLD, 11));
316 examinerLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.examinerLabel.text"));
317 examinerLabel.setMaximumSize(
new java.awt.Dimension(82, 14));
318 examinerLabel.setMinimumSize(
new java.awt.Dimension(82, 14));
319 examinerLabel.setPreferredSize(
new java.awt.Dimension(82, 14));
321 caseNotesScrollPane.setBorder(null);
323 taNotesText.setEditable(
false);
324 taNotesText.setBackground(
new java.awt.Color(240, 240, 240));
325 taNotesText.setColumns(20);
326 taNotesText.setFont(
new java.awt.Font(
"Tahoma", 0, 11));
327 taNotesText.setLineWrap(
true);
328 taNotesText.setRows(2);
329 taNotesText.setWrapStyleWord(
true);
330 taNotesText.setBorder(null);
331 taNotesText.setFocusable(
false);
332 taNotesText.setOpaque(
false);
333 caseNotesScrollPane.setViewportView(taNotesText);
335 lbExaminerEmailLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.lbExaminerEmailLabel.text"));
336 lbExaminerEmailLabel.setMaximumSize(
new java.awt.Dimension(82, 14));
337 lbExaminerEmailLabel.setMinimumSize(
new java.awt.Dimension(82, 14));
338 lbExaminerEmailLabel.setPreferredSize(
new java.awt.Dimension(82, 14));
340 lbExaminerPhoneLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.lbExaminerPhoneLabel.text"));
341 lbExaminerPhoneLabel.setMaximumSize(
new java.awt.Dimension(82, 14));
342 lbExaminerPhoneLabel.setMinimumSize(
new java.awt.Dimension(82, 14));
343 lbExaminerPhoneLabel.setPreferredSize(
new java.awt.Dimension(82, 14));
345 javax.swing.GroupLayout examinerPanelLayout =
new javax.swing.GroupLayout(examinerPanel);
346 examinerPanel.setLayout(examinerPanelLayout);
347 examinerPanelLayout.setHorizontalGroup(
348 examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
349 .addGroup(examinerPanelLayout.createSequentialGroup()
351 .addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
352 .addGroup(examinerPanelLayout.createSequentialGroup()
353 .addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
354 .addComponent(lbNotesLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
355 .addComponent(lbExaminerPhoneLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
357 .addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
358 .addComponent(lbExaminerPhoneText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
359 .addComponent(caseNotesScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 704, Short.MAX_VALUE)))
360 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, examinerPanelLayout.createSequentialGroup()
361 .addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
362 .addComponent(lbExaminerEmailLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
363 .addComponent(examinerLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
364 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
365 .addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
366 .addComponent(lbExaminerNameText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
367 .addComponent(lbExaminerEmailText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
371 examinerPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
new java.awt.Component[] {examinerLabel, lbExaminerEmailLabel, lbExaminerPhoneLabel, lbNotesLabel});
373 examinerPanelLayout.setVerticalGroup(
374 examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
375 .addGroup(examinerPanelLayout.createSequentialGroup()
377 .addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
378 .addComponent(examinerLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
379 .addComponent(lbExaminerNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
380 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
381 .addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
382 .addComponent(lbExaminerPhoneLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
383 .addComponent(lbExaminerPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
384 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
385 .addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
386 .addComponent(lbExaminerEmailLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
387 .addComponent(lbExaminerEmailText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
388 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
389 .addGroup(examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
390 .addComponent(lbNotesLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
391 .addComponent(caseNotesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
395 pnOrganization.setBorder(javax.swing.BorderFactory.createTitledBorder(null,
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.pnOrganization.border.title"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION,
new java.awt.Font(
"Tahoma", 0, 12)));
397 lbOrganizationNameLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.lbOrganizationNameLabel.text"));
398 lbOrganizationNameLabel.setMaximumSize(
new java.awt.Dimension(82, 14));
399 lbOrganizationNameLabel.setMinimumSize(
new java.awt.Dimension(82, 14));
400 lbOrganizationNameLabel.setPreferredSize(
new java.awt.Dimension(82, 14));
402 lbPointOfContactNameLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.lbPointOfContactNameLabel.text"));
404 lbPointOfContactEmailLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.lbPointOfContactEmailLabel.text"));
405 lbPointOfContactEmailLabel.setMaximumSize(
new java.awt.Dimension(82, 14));
406 lbPointOfContactEmailLabel.setMinimumSize(
new java.awt.Dimension(82, 14));
407 lbPointOfContactEmailLabel.setPreferredSize(
new java.awt.Dimension(82, 14));
409 lbPointOfContactPhoneLabel.setText(
org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class,
"CasePropertiesPanel.lbPointOfContactPhoneLabel.text"));
410 lbPointOfContactPhoneLabel.setMaximumSize(
new java.awt.Dimension(82, 14));
411 lbPointOfContactPhoneLabel.setMinimumSize(
new java.awt.Dimension(82, 14));
412 lbPointOfContactPhoneLabel.setPreferredSize(
new java.awt.Dimension(82, 14));
414 javax.swing.GroupLayout pnOrganizationLayout =
new javax.swing.GroupLayout(pnOrganization);
415 pnOrganization.setLayout(pnOrganizationLayout);
416 pnOrganizationLayout.setHorizontalGroup(
417 pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
418 .addGroup(pnOrganizationLayout.createSequentialGroup()
420 .addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
421 .addGroup(pnOrganizationLayout.createSequentialGroup()
422 .addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
423 .addComponent(lbPointOfContactEmailLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
424 .addComponent(lbOrganizationNameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
425 .addComponent(lbPointOfContactNameLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))
427 .addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
428 .addComponent(lbPointOfContactNameText, javax.swing.GroupLayout.DEFAULT_SIZE, 704, Short.MAX_VALUE)
429 .addComponent(lbOrganizationNameText, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
430 .addComponent(lbPointOfContactEmailText, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
431 .addGroup(pnOrganizationLayout.createSequentialGroup()
432 .addComponent(lbPointOfContactPhoneLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
433 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
434 .addComponent(lbPointOfContactPhoneText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
438 pnOrganizationLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL,
new java.awt.Component[] {lbOrganizationNameLabel, lbPointOfContactEmailLabel, lbPointOfContactNameLabel, lbPointOfContactPhoneLabel});
440 pnOrganizationLayout.setVerticalGroup(
441 pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
442 .addGroup(pnOrganizationLayout.createSequentialGroup()
444 .addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
445 .addComponent(lbOrganizationNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
446 .addComponent(lbOrganizationNameText, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
447 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
448 .addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
449 .addComponent(lbPointOfContactNameLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
450 .addComponent(lbPointOfContactNameText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
451 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
452 .addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
453 .addComponent(lbPointOfContactPhoneLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
454 .addComponent(lbPointOfContactPhoneText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
455 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
456 .addGroup(pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING,
false)
457 .addComponent(lbPointOfContactEmailLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
458 .addComponent(lbPointOfContactEmailText, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
462 javax.swing.GroupLayout detailsPanelLayout =
new javax.swing.GroupLayout(detailsPanel);
463 detailsPanel.setLayout(detailsPanelLayout);
464 detailsPanelLayout.setHorizontalGroup(
465 detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
466 .addGroup(detailsPanelLayout.createSequentialGroup()
468 .addGroup(detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
469 .addComponent(casePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
470 .addComponent(examinerPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
471 .addComponent(pnOrganization, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
474 detailsPanelLayout.setVerticalGroup(
475 detailsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
476 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, detailsPanelLayout.createSequentialGroup()
477 .addComponent(casePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
479 .addComponent(examinerPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
481 .addComponent(pnOrganization, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
485 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
486 this.setLayout(layout);
487 layout.setHorizontalGroup(
488 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
489 .addGroup(layout.createSequentialGroup()
491 .addComponent(detailsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
494 layout.setVerticalGroup(
495 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
496 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
498 .addComponent(detailsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
504 private javax.swing.JLabel caseDirField;
505 private javax.swing.JLabel caseDirLabel;
506 private javax.swing.JLabel caseNameLabel;
507 private javax.swing.JScrollPane caseNotesScrollPane;
508 private javax.swing.JLabel caseNumberLabel;
509 private javax.swing.JPanel casePanel;
510 private javax.swing.JLabel caseTypeField;
511 private javax.swing.JLabel crDateField;
512 private javax.swing.JLabel crDateLabel;
513 private javax.swing.JLabel dbNameField;
514 private javax.swing.JPanel detailsPanel;
515 private javax.swing.JLabel examinerLabel;
516 private javax.swing.JPanel examinerPanel;
517 private javax.swing.JScrollPane jScrollPane1;
518 private javax.swing.JTextArea jTextArea1;
519 private javax.swing.JLabel lbCaseNameText;
520 private javax.swing.JLabel lbCaseNumberText;
521 private javax.swing.JLabel lbCaseUIDText;
522 private javax.swing.JLabel lbCaseUUIDLabel;
523 private javax.swing.JLabel lbDbName;
524 private javax.swing.JLabel lbDbType;
525 private javax.swing.JLabel lbExaminerEmailLabel;
526 private javax.swing.JLabel lbExaminerEmailText;
527 private javax.swing.JLabel lbExaminerNameText;
528 private javax.swing.JLabel lbExaminerPhoneLabel;
529 private javax.swing.JLabel lbExaminerPhoneText;
530 private javax.swing.JLabel lbNotesLabel;
531 private javax.swing.JLabel lbOrganizationNameLabel;
532 private javax.swing.JLabel lbOrganizationNameText;
533 private javax.swing.JLabel lbPointOfContactEmailLabel;
534 private javax.swing.JLabel lbPointOfContactEmailText;
535 private javax.swing.JLabel lbPointOfContactNameLabel;
536 private javax.swing.JLabel lbPointOfContactNameText;
537 private javax.swing.JLabel lbPointOfContactPhoneLabel;
538 private javax.swing.JLabel lbPointOfContactPhoneText;
539 private javax.swing.JPanel pnOrganization;
540 private javax.swing.JTextArea taNotesText;
synchronized static Logger getLogger(String name)