mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-09 06:39:33 +00:00
refresh() made nonstatic
This commit is contained in:
parent
cbaa15c437
commit
feaaedbf7c
@ -83,7 +83,6 @@ import org.openide.util.actions.Presenter;
|
||||
*/
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
CueBannerPanel.refresh();
|
||||
if (Case.existsCurrentCase() == false)
|
||||
return;
|
||||
|
||||
|
@ -126,9 +126,6 @@
|
||||
<Events>
|
||||
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="openRecentButtonActionPerformed"/>
|
||||
</Events>
|
||||
<AuxValues>
|
||||
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="10"/>
|
||||
</AuxValues>
|
||||
</Component>
|
||||
<Component class="javax.swing.JLabel" name="createNewLabel">
|
||||
<Properties>
|
||||
@ -149,9 +146,6 @@
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/casemodule/Bundle.properties" key="CueBannerPanel.openRecentLabel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
</Properties>
|
||||
<AuxValues>
|
||||
<AuxValue name="JavaCodeGenerator_VariableModifier" type="java.lang.Integer" value="10"/>
|
||||
</AuxValues>
|
||||
</Component>
|
||||
<Component class="javax.swing.JButton" name="openCaseButton">
|
||||
<Properties>
|
||||
|
@ -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 {
|
||||
);
|
||||
}// </editor-fold>//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
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user