Autopsy  4.9.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
CasePropertiesPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011-2018 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 package org.sleuthkit.autopsy.casemodule;
20 
21 import java.nio.file.Paths;
22 import java.util.logging.Level;
23 import org.openide.util.NbBundle.Messages;
29 
34 @SuppressWarnings("PMD.SingularField") // UI widgets cause lots of false positives
35 final class CasePropertiesPanel extends javax.swing.JPanel {
36 
37  private static final long serialVersionUID = 1L;
38  private static final Logger logger = Logger.getLogger(CasePropertiesPanel.class.getName());
39  private Case theCase;
40 
47  CasePropertiesPanel(Case caseInfo) {
48  initComponents();
49  updateCaseInfo();
50  }
51 
52  void updateCaseInfo() {
53  try {
54  theCase = Case.getCurrentCaseThrows();
55  } catch (NoCurrentCaseException ex) {
56  logger.log(Level.SEVERE, "Exception while getting open case.", ex);
57  return;
58  }
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());
69  } else {
70  dbNameField.setText(theCase.getMetadata().getCaseDatabaseName());
71  }
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;
83  if (cREnabled) {
84  try {
85  EamDb dbManager = EamDb.getInstance();
86  if (dbManager != null) {
87  CorrelationCase correlationCase = dbManager.getCase(theCase);
88  if (null == correlationCase) {
89  correlationCase = dbManager.newCase(theCase);
90  }
91  currentOrg = correlationCase.getOrg();
92  }
93  } catch (EamDbException ex) {
94  logger.log(Level.SEVERE, "Unable to access Correlation Case when Central Repo is enabled", ex);
95  }
96  }
97  if (currentOrg != null) {
98  lbOrganizationNameText.setText(currentOrg.getName());
99  lbPointOfContactNameText.setText(currentOrg.getPocName());
100  lbPointOfContactPhoneText.setText(currentOrg.getPocPhone());
101  lbPointOfContactEmailText.setText(currentOrg.getPocEmail());
102  } else {
103  lbOrganizationNameText.setText("");
104  lbPointOfContactNameText.setText("");
105  lbPointOfContactPhoneText.setText("");
106  lbPointOfContactEmailText.setText("");
107  }
108  Case.CaseType caseType = theCase.getCaseType();
109  caseTypeField.setText(caseType.getLocalizedDisplayName());
110  lbCaseUIDText.setText(theCase.getName());
111  validate();
112  repaint();
113  }
114 
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:"})
127 
142  @SuppressWarnings("unchecked")
143  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
144  private void initComponents() {
145 
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();
183 
184  jTextArea1.setColumns(20);
185  jTextArea1.setRows(5);
186  jScrollPane1.setViewportView(jTextArea1);
187 
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))); // NOI18N
189 
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")); // NOI18N
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));
195 
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")); // NOI18N
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));
201 
202  lbCaseUUIDLabel.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbCaseUUIDLabel.text")); // NOI18N
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));
206 
207  caseTypeField.setMaximumSize(new java.awt.Dimension(1, 0));
208 
209  dbNameField.setMinimumSize(new java.awt.Dimension(25, 14));
210 
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")); // NOI18N
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));
216 
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")); // NOI18N
219 
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")); // NOI18N
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));
225 
226  caseDirField.setMinimumSize(new java.awt.Dimension(25, 14));
227 
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")); // NOI18N
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));
233 
234  lbCaseNameText.setMinimumSize(new java.awt.Dimension(25, 14));
235 
236  lbCaseNumberText.setMinimumSize(new java.awt.Dimension(25, 14));
237 
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()
243  .addContainerGap()
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))
249  .addGap(6, 6, 6)
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))
261  .addGap(6, 6, 6)
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))))
268  .addContainerGap())
269  );
270 
271  casePanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {caseDirLabel, caseNameLabel, caseNumberLabel, crDateLabel, lbCaseUUIDLabel, lbDbName, lbDbType});
272 
273  casePanelLayout.setVerticalGroup(
274  casePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
275  .addGroup(casePanelLayout.createSequentialGroup()
276  .addContainerGap()
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))
304  .addGap(6, 6, 6))
305  );
306 
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))); // NOI18N
308 
309  lbNotesLabel.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbNotesLabel.text")); // NOI18N
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);
314 
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")); // NOI18N
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));
320 
321  caseNotesScrollPane.setBorder(null);
322 
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)); // NOI18N
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);
334 
335  lbExaminerEmailLabel.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbExaminerEmailLabel.text")); // NOI18N
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));
339 
340  lbExaminerPhoneLabel.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbExaminerPhoneLabel.text")); // NOI18N
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));
344 
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()
350  .addContainerGap()
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))
356  .addGap(6, 6, 6)
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))))
368  .addContainerGap())
369  );
370 
371  examinerPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {examinerLabel, lbExaminerEmailLabel, lbExaminerPhoneLabel, lbNotesLabel});
372 
373  examinerPanelLayout.setVerticalGroup(
374  examinerPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
375  .addGroup(examinerPanelLayout.createSequentialGroup()
376  .addContainerGap()
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))
392  .addGap(6, 6, 6))
393  );
394 
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))); // NOI18N
396 
397  lbOrganizationNameLabel.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbOrganizationNameLabel.text")); // NOI18N
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));
401 
402  lbPointOfContactNameLabel.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbPointOfContactNameLabel.text")); // NOI18N
403 
404  lbPointOfContactEmailLabel.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbPointOfContactEmailLabel.text")); // NOI18N
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));
408 
409  lbPointOfContactPhoneLabel.setText(org.openide.util.NbBundle.getMessage(CasePropertiesPanel.class, "CasePropertiesPanel.lbPointOfContactPhoneLabel.text")); // NOI18N
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));
413 
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()
419  .addContainerGap()
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))
426  .addGap(6, 6, 6)
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)))
435  .addContainerGap())
436  );
437 
438  pnOrganizationLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {lbOrganizationNameLabel, lbPointOfContactEmailLabel, lbPointOfContactNameLabel, lbPointOfContactPhoneLabel});
439 
440  pnOrganizationLayout.setVerticalGroup(
441  pnOrganizationLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
442  .addGroup(pnOrganizationLayout.createSequentialGroup()
443  .addContainerGap()
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))
459  .addGap(6, 6, 6))
460  );
461 
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()
467  .addContainerGap()
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))
472  .addContainerGap())
473  );
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)
478  .addGap(0, 0, 0)
479  .addComponent(examinerPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
480  .addGap(0, 0, 0)
481  .addComponent(pnOrganization, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
482  .addContainerGap())
483  );
484 
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()
490  .addGap(0, 0, 0)
491  .addComponent(detailsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
492  .addGap(0, 0, 0))
493  );
494  layout.setVerticalGroup(
495  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
496  .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
497  .addGap(0, 0, 0)
498  .addComponent(detailsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
499  .addGap(0, 0, 0))
500  );
501  }// </editor-fold>//GEN-END:initComponents
502 
503  // Variables declaration - do not modify//GEN-BEGIN:variables
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;
541  // End of variables declaration//GEN-END:variables
542 
543 }
synchronized static Logger getLogger(String name)
Definition: Logger.java:124

Copyright © 2012-2018 Basis Technology. Generated on: Tue Dec 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.