19 package org.sleuthkit.autopsy.casemodule;
21 import java.awt.Dialog;
22 import java.awt.event.KeyEvent;
23 import javax.swing.JComponent;
24 import javax.swing.JDialog;
25 import javax.swing.KeyStroke;
26 import org.openide.windows.WindowManager;
31 @SuppressWarnings(
"PMD.SingularField")
32 final class MultiUserCasesDialog extends JDialog {
34 private static final long serialVersionUID = 1L;
35 private static final String REVIEW_MODE_TITLE =
"Open Multi-User Case";
36 private static MultiUserCasesPanel multiUserCasesPanel;
37 private static MultiUserCasesDialog instance;
44 static public MultiUserCasesDialog getInstance() {
45 if(instance == null) {
46 instance =
new MultiUserCasesDialog();
55 private MultiUserCasesDialog() {
56 super(WindowManager.getDefault().getMainWindow(),
58 Dialog.ModalityType.APPLICATION_MODAL);
65 getRootPane().registerKeyboardAction(
69 KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0), JComponent.WHEN_IN_FOCUSED_WINDOW);
71 multiUserCasesPanel =
new MultiUserCasesPanel(
this);
72 add(multiUserCasesPanel);
84 public void setVisible(
boolean value) {
86 multiUserCasesPanel.refresh();
88 super.setVisible(value);