diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/CaseCloseAction.java b/Core/src/org/sleuthkit/autopsy/casemodule/CaseCloseAction.java
index cb2e098be1..900a355bf0 100644
--- a/Core/src/org/sleuthkit/autopsy/casemodule/CaseCloseAction.java
+++ b/Core/src/org/sleuthkit/autopsy/casemodule/CaseCloseAction.java
@@ -83,7 +83,6 @@ import org.openide.util.actions.Presenter;
*/
@Override
public void actionPerformed(ActionEvent e) {
- CueBannerPanel.refresh();
if (Case.existsCurrentCase() == false)
return;
diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.form b/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.form
index b1274c117a..57670e96aa 100644
--- a/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.form
+++ b/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.form
@@ -126,9 +126,6 @@
-
-
-
@@ -149,9 +146,6 @@
-
-
-
diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.java b/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.java
index 103d19c488..d5a974a587 100644
--- a/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.java
+++ b/Core/src/org/sleuthkit/autopsy/casemodule/CueBannerPanel.java
@@ -47,6 +47,7 @@ public class CueBannerPanel extends javax.swing.JPanel {
public CueBannerPanel() {
initComponents();
+ refresh();
}
public CueBannerPanel(String welcomeLogo) {
@@ -179,7 +180,7 @@ public class CueBannerPanel extends javax.swing.JPanel {
);
}// //GEN-END:initComponents
- public static void refresh() {
+ public void refresh() {
if (RecentCases.getInstance().getTotalRecentCases() == 0) {
openRecentButton.setEnabled(false);
openRecentLabel.setEnabled(false);
@@ -236,8 +237,8 @@ public class CueBannerPanel extends javax.swing.JPanel {
private javax.swing.JButton newCaseButton;
private javax.swing.JButton openCaseButton;
private javax.swing.JLabel openLabel;
- private static javax.swing.JButton openRecentButton;
- private static javax.swing.JLabel openRecentLabel;
+ private javax.swing.JButton openRecentButton;
+ private javax.swing.JLabel openRecentLabel;
// End of variables declaration//GEN-END:variables
/**
diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/StartupWindow.java b/Core/src/org/sleuthkit/autopsy/casemodule/StartupWindow.java
index bd9e3d3d23..21281c2743 100644
--- a/Core/src/org/sleuthkit/autopsy/casemodule/StartupWindow.java
+++ b/Core/src/org/sleuthkit/autopsy/casemodule/StartupWindow.java
@@ -40,6 +40,7 @@ public final class StartupWindow extends JDialog implements StartupWindowInterfa
private static StartupWindow instance;
private static final String TITLE = NbBundle.getMessage(StartupWindow.class, "StartupWindow.title.text");
private static Dimension DIMENSIONS = new Dimension(750, 400);
+ CueBannerPanel welcomeWindow;
public StartupWindow() {
super(WindowManager.getDefault().getMainWindow(), TITLE, true);
@@ -62,8 +63,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();
- CueBannerPanel.refresh();
+ welcomeWindow = new CueBannerPanel();
// add the command to close the window to the button on the Volume Detail Panel
welcomeWindow.setCloseButtonActionListener(new ActionListener() {
@@ -82,6 +82,7 @@ public final class StartupWindow extends JDialog implements StartupWindowInterfa
@Override
public void open() {
+ welcomeWindow.refresh();
setVisible(true);
}