mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
added no arg constructor back to CueBannerPanel
This commit is contained in:
parent
8126ed6184
commit
1366f6e268
@ -29,12 +29,9 @@ import javax.swing.JDialog;
|
|||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
import javax.swing.JPanel;
|
import javax.swing.JPanel;
|
||||||
import org.openide.util.Lookup;
|
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 {
|
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 static JPanel caller = new JPanel();
|
||||||
private String className = this.getClass().toString();
|
private String className = this.getClass().toString();
|
||||||
|
|
||||||
/** Creates new form CueBannerPanel
|
public CueBannerPanel() {
|
||||||
*
|
initComponents();
|
||||||
* @param welcomeLogo Java-centric path to an image file, e.g. "/org/sleuthkit/autopsy/casemodule/welcome_logo.png".
|
}
|
||||||
*/
|
|
||||||
public CueBannerPanel(String welcomeLogo) {
|
public CueBannerPanel(String welcomeLogo) {
|
||||||
initComponents();
|
initComponents();
|
||||||
ImageIcon icon = null;
|
|
||||||
ClassLoader cl = Lookup.getDefault().lookup(ClassLoader.class);
|
ClassLoader cl = Lookup.getDefault().lookup(ClassLoader.class);
|
||||||
if (cl != null) {
|
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
|
/** This method is called from within the constructor to
|
||||||
|
@ -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
|
// set the location of the popUp Window on the center of the screen
|
||||||
setLocation((screenDimension.width - w) / 2, (screenDimension.height - h) / 2);
|
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
|
// add the command to close the window to the button on the Volume Detail Panel
|
||||||
welcomeWindow.setCloseButtonActionListener(new ActionListener() {
|
welcomeWindow.setCloseButtonActionListener(new ActionListener() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user