diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.java b/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.java index d28c040669..49c5b313a0 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.java @@ -29,12 +29,9 @@ import javax.swing.JDialog; import javax.swing.JFrame; import javax.swing.JPanel; import org.openide.util.Lookup; -import org.sleuthkit.autopsy.coreutils.Version; -import org.netbeans.api.options.OptionsDisplayer; /** * - * @author jantonius */ public class CueBannerPanel extends javax.swing.JPanel { @@ -46,18 +43,17 @@ public class CueBannerPanel extends javax.swing.JPanel { private static JPanel caller = new JPanel(); private String className = this.getClass().toString(); - /** Creates new form CueBannerPanel - * - * @param welcomeLogo Java-centric path to an image file, e.g. "/org/sleuthkit/autopsy/casemodule/welcome_logo.png". - */ + public CueBannerPanel() { + initComponents(); + } + public CueBannerPanel(String welcomeLogo) { initComponents(); - ImageIcon icon = null; ClassLoader cl = Lookup.getDefault().lookup(ClassLoader.class); if (cl != null) { - icon = new ImageIcon(cl.getResource(welcomeLogo)); + ImageIcon icon = new ImageIcon(cl.getResource(welcomeLogo)); + autopsyLogo.setIcon(icon); } - autopsyLogo.setIcon(icon); //if null then no icon will be shown } /** This method is called from within the constructor to diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/StartupWindow.java b/Core/src/org/sleuthkit/autopsy/casemodule/StartupWindow.java index f6f9f540bd..f100123479 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/StartupWindow.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/StartupWindow.java @@ -59,7 +59,7 @@ public final class StartupWindow extends JDialog implements StartupWindowInterfa // set the location of the popUp Window on the center of the screen setLocation((screenDimension.width - w) / 2, (screenDimension.height - h) / 2); - CueBannerPanel welcomeWindow = new CueBannerPanel("/org/sleuthkit/autopsy/casemodule/welcome_logo.png"); + CueBannerPanel welcomeWindow = new CueBannerPanel(); // add the command to close the window to the button on the Volume Detail Panel welcomeWindow.setCloseButtonActionListener(new ActionListener() {