diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.java b/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.java index 501b1f488e..49c5b313a0 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.java @@ -24,16 +24,14 @@ import java.awt.Dimension; import java.awt.Toolkit; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; +import javax.swing.ImageIcon; 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 { @@ -45,11 +43,19 @@ public class CueBannerPanel extends javax.swing.JPanel { private static JPanel caller = new JPanel(); private String className = this.getClass().toString(); - /** Creates new form CueBannerPanel */ public CueBannerPanel() { initComponents(); } + public CueBannerPanel(String welcomeLogo) { + initComponents(); + ClassLoader cl = Lookup.getDefault().lookup(ClassLoader.class); + if (cl != null) { + ImageIcon icon = new ImageIcon(cl.getResource(welcomeLogo)); + autopsyLogo.setIcon(icon); + } + } + /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is @@ -254,7 +260,7 @@ public class CueBannerPanel extends javax.swing.JPanel { */ public void setCloseButtonText(String text) { closeButton.setText(text); - } + } /** * Close the open recent cases window. diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/StartupWindow.java b/Core/src/org/sleuthkit/autopsy/casemodule/StartupWindow.java index 8d477b18fa..f100123479 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/StartupWindow.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/StartupWindow.java @@ -58,7 +58,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(); // add the command to close the window to the button on the Volume Detail Panel diff --git a/Core/src/org/sleuthkit/autopsy/corecomponents/ProductInformationPanel.form b/Core/src/org/sleuthkit/autopsy/corecomponents/ProductInformationPanel.form index e37b43cc05..d529361ded 100644 --- a/Core/src/org/sleuthkit/autopsy/corecomponents/ProductInformationPanel.form +++ b/Core/src/org/sleuthkit/autopsy/corecomponents/ProductInformationPanel.form @@ -21,16 +21,19 @@ - + + - - - - + + + + + + @@ -43,17 +46,15 @@ - + - + - - - - - - - + + + + + @@ -80,26 +81,6 @@ - - - - - - - - - - - - - - - - - - - - @@ -159,5 +140,18 @@ + + + + + + + + + + + + + diff --git a/Core/src/org/sleuthkit/autopsy/corecomponents/ProductInformationPanel.java b/Core/src/org/sleuthkit/autopsy/corecomponents/ProductInformationPanel.java index 20c1508000..0499404c42 100644 --- a/Core/src/org/sleuthkit/autopsy/corecomponents/ProductInformationPanel.java +++ b/Core/src/org/sleuthkit/autopsy/corecomponents/ProductInformationPanel.java @@ -43,13 +43,13 @@ import org.sleuthkit.datamodel.SleuthkitJNI; /** * Custom "About" window panel. */ -class ProductInformationPanel extends JPanel implements HyperlinkListener { +public class ProductInformationPanel extends JPanel implements HyperlinkListener { private URL url = null; private Icon about; private boolean verboseLogging; - ProductInformationPanel() { + public ProductInformationPanel() { about = new ImageIcon(org.netbeans.core.startup.Splash.loadContent(true)); initComponents(); jLabel1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); @@ -67,16 +67,15 @@ class ProductInformationPanel extends JPanel implements HyperlinkListener { // //GEN-BEGIN:initComponents private void initComponents() { - java.awt.GridBagConstraints gridBagConstraints; jLabel1 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); - jButton2 = new javax.swing.JButton(); jScrollPane3 = new javax.swing.JScrollPane(); copyright = new javax.swing.JTextPane(); jScrollPane2 = new javax.swing.JScrollPane(); description = new javax.swing.JTextPane(); verboseLoggingButton = new javax.swing.JButton(); + jButton2 = new javax.swing.JButton(); setBackground(new java.awt.Color(255, 255, 255)); @@ -92,22 +91,10 @@ class ProductInformationPanel extends JPanel implements HyperlinkListener { jPanel1.setBackground(new java.awt.Color(255, 255, 255)); jPanel1.setLayout(new java.awt.GridBagLayout()); - jButton2.setBackground(new java.awt.Color(255, 255, 255)); - jButton2.setText(NbBundle.getMessage(ProductInformationPanel.class, "LBL_Close")); // NOI18N - jButton2.addActionListener(new java.awt.event.ActionListener() { - public void actionPerformed(java.awt.event.ActionEvent evt) { - jButton2ActionPerformed(evt); - } - }); - gridBagConstraints = new java.awt.GridBagConstraints(); - gridBagConstraints.weightx = 1.0; - gridBagConstraints.weighty = 1.0; - jPanel1.add(jButton2, gridBagConstraints); - jScrollPane3.setBorder(null); copyright.setBorder(null); - copyright.setContentType("text/html"); + copyright.setContentType("text/html"); // NOI18N copyright.setEditable(false); copyright.setText(org.openide.util.NbBundle.getBundle(ProductInformationPanel.class).getString("LBL_Copyright")); // NOI18N copyright.addMouseListener(new java.awt.event.MouseAdapter() { @@ -117,7 +104,7 @@ class ProductInformationPanel extends JPanel implements HyperlinkListener { }); jScrollPane3.setViewportView(copyright); - description.setContentType("text/html"); + description.setContentType("text/html"); // NOI18N description.setEditable(false); jScrollPane2.setViewportView(description); @@ -129,6 +116,14 @@ class ProductInformationPanel extends JPanel implements HyperlinkListener { } }); + jButton2.setBackground(new java.awt.Color(255, 255, 255)); + jButton2.setText(NbBundle.getMessage(ProductInformationPanel.class, "LBL_Close")); // NOI18N + jButton2.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + jButton2ActionPerformed(evt); + } + }); + javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this); this.setLayout(layout); layout.setHorizontalGroup( @@ -136,13 +131,15 @@ class ProductInformationPanel extends JPanel implements HyperlinkListener { .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE) .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 394, Short.MAX_VALUE) - .addGroup(layout.createSequentialGroup() - .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 237, Short.MAX_VALUE) - .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addComponent(verboseLoggingButton))) + .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() + .addGap(0, 0, Short.MAX_VALUE) + .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) + .addComponent(verboseLoggingButton, javax.swing.GroupLayout.Alignment.TRAILING) + .addComponent(jButton2, javax.swing.GroupLayout.Alignment.TRAILING)))) .addContainerGap()) ); layout.setVerticalGroup( @@ -151,15 +148,15 @@ class ProductInformationPanel extends JPanel implements HyperlinkListener { .addContainerGap() .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) - .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE) + .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 94, Short.MAX_VALUE) .addGap(32, 32, 32) - .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 103, Short.MAX_VALUE) + .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 96, Short.MAX_VALUE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) - .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) - .addGroup(layout.createSequentialGroup() - .addGap(27, 27, 27) - .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) - .addComponent(verboseLoggingButton)) + .addComponent(verboseLoggingButton) + .addGap(0, 0, 0) + .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) + .addGap(18, 18, 18) + .addComponent(jButton2) .addContainerGap()) ); }// //GEN-END:initComponents @@ -253,7 +250,11 @@ private void jLabel1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:eve private static String getEncodingValue() { return System.getProperty("file.encoding", "unknown"); } - + + public void setCopyright(String text) { + copyright.setText(text); + } + @Override public void hyperlinkUpdate(HyperlinkEvent event) { if (HyperlinkEvent.EventType.ENTERED == event.getEventType()) { diff --git a/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties b/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties index 8d7719d668..0c8b9abcbd 100644 --- a/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties +++ b/branding/core/core.jar/org/netbeans/core/startup/Bundle.properties @@ -1,5 +1,5 @@ #Updated by build script -#Wed, 07 Aug 2013 08:19:27 -0400 +#Fri, 23 Aug 2013 15:47:56 -0400 LBL_splash_window_title=Starting Autopsy SPLASH_HEIGHT=288 SPLASH_WIDTH=538 @@ -8,4 +8,4 @@ SplashRunningTextBounds=5,266,530,17 SplashRunningTextColor=0x0 SplashRunningTextFontSize=18 -currentVersion=Autopsy 20130807 +currentVersion=Autopsy 20130823 diff --git a/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties b/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties index e718444a20..60b4d85f0e 100644 --- a/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties +++ b/branding/modules/org-netbeans-core-windows.jar/org/netbeans/core/windows/view/ui/Bundle.properties @@ -1,5 +1,5 @@ #Updated by build script -#Wed, 07 Aug 2013 08:19:27 -0400 +#Fri, 23 Aug 2013 15:47:56 -0400 -CTL_MainWindow_Title=Autopsy 20130807 -CTL_MainWindow_Title_No_Project=Autopsy 20130807 +CTL_MainWindow_Title=Autopsy 20130823 +CTL_MainWindow_Title_No_Project=Autopsy 20130823