21 package org.sleuthkit.autopsy.casemodule;
23 import java.awt.Dimension;
24 import java.awt.Toolkit;
25 import java.awt.event.ActionEvent;
26 import java.awt.event.ActionListener;
27 import javax.swing.JDialog;
28 import javax.swing.JFrame;
30 import org.openide.util.NbBundle;
31 import org.openide.util.lookup.ServiceProvider;
32 import org.openide.windows.WindowManager;
37 @ServiceProvider(service=StartupWindowInterface.class)
41 private static final String TITLE = NbBundle.getMessage(
StartupWindow.class,
"StartupWindow.title.text");
42 private static Dimension DIMENSIONS =
new Dimension(750, 400);
46 super(WindowManager.getDefault().getMainWindow(), TITLE,
true);
56 Dimension screenDimension = Toolkit.getDefaultToolkit().getScreenSize();
60 int w = this.getSize().width;
61 int h = this.getSize().height;
64 setLocation((screenDimension.width - w) / 2, (screenDimension.height - h) / 2);
72 public void actionPerformed(ActionEvent e) {
94 this.setVisible(
false);
void setCloseButtonActionListener(ActionListener e)
static StartupWindow instance
static CueBannerPanel welcomeWindow