19 package org.sleuthkit.autopsy.casemodule;
21 import java.awt.Dimension;
22 import java.awt.Toolkit;
23 import java.awt.event.ActionEvent;
24 import java.awt.event.ActionListener;
25 import javax.swing.JDialog;
26 import javax.swing.JFrame;
28 import org.openide.util.NbBundle;
29 import org.openide.util.lookup.ServiceProvider;
30 import org.openide.windows.WindowManager;
35 @ServiceProvider(service = StartupWindowInterface.class)
39 private static final String TITLE = NbBundle.getMessage(
StartupWindow.class,
"StartupWindow.title.text");
40 private static Dimension DIMENSIONS =
new Dimension(750, 400);
44 super(WindowManager.getDefault().getMainWindow(), TITLE,
true);
53 Dimension screenDimension = Toolkit.getDefaultToolkit().getScreenSize();
57 int w = this.getSize().width;
58 int h = this.getSize().height;
61 setLocation((screenDimension.width - w) / 2, (screenDimension.height - h) / 2);
62 setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
67 welcomeWindow.setCloseButtonActionListener(
new ActionListener() {
70 public void actionPerformed(ActionEvent e) {
84 setLocationRelativeTo(WindowManager.getDefault().getMainWindow());
93 this.setVisible(
false);
static StartupWindow instance
static CueBannerPanel welcomeWindow