Restore backaward compatibility of corecomponents/AboutWindowPanel

This commit is contained in:
Richard Cordovano 2016-02-29 13:33:46 -05:00
parent 825cdbe21a
commit 4ab06c42c4

View File

@ -1,7 +1,7 @@
/*
* Autopsy Forensic Browser
*
* Copyright 2011 Basis Technology Corp.
* Copyright 2011-2016 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* Licensed under the Apache License, Version 2.0 (the "License");
@ -47,16 +47,22 @@ import org.sleuthkit.datamodel.SleuthkitJNI;
*/
public final class AboutWindowPanel extends JPanel implements HyperlinkListener {
private static final Logger Logger = org.sleuthkit.autopsy.coreutils.Logger.getLogger(AboutWindowPanel.class.getName());
private static final long serialVersionUID = 1L;
private URL url = null;
private Icon about;
private final Icon about;
private boolean verboseLogging;
public AboutWindowPanel() {
about = new ImageIcon(ImageUtilities.loadImage("org/sleuthkit/autopsy/images/splash.png"));
init();
}
public AboutWindowPanel(String pathToBrandingImage) {
about = new ImageIcon(ImageUtilities.loadImage(pathToBrandingImage));
init();
}
private void init() {
initComponents();
logoLabel.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
description.setText(org.openide.util.NbBundle.getMessage(AboutWindowPanel.class,
@ -68,7 +74,6 @@ public final class AboutWindowPanel extends JPanel implements HyperlinkListener
if (verboseLoggingIsSet()) {
disableVerboseLoggingButton();
}
}
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents