1
0
mirror of https://github.com/elisspace/autopsy.git synced 2026-09-06 02:24:30 +00:00

Removed path for each generated report.

Added report folder location label beneath Timestamp
This commit is contained in:
0xNF
2012-10-31 16:40:13 -04:00
parent 36e6235aba
commit cd7a4bb6ff
3 changed files with 33 additions and 11 deletions

View File

@@ -13,6 +13,7 @@ ReportPanel.jButton1.text=Close
ReportFilter.updateLabel.toolTipText=
ReportFilter.updateLabel.text=
ReportPanel.statusLabel.text=Status Label
ReportPanel.exportButton.text=Export Report(s)...
ReportPanel.exportButton.text=Save As...
ReportPanel.closeButton.text_1=Close
ReportPanel.reportScrollPane.border.title=Report Summary
ReportPanel.LABEL_LOC.text=Location

View File

@@ -21,7 +21,8 @@
<Group type="103" groupAlignment="0" attributes="0">
<Component id="reportScrollPane" alignment="0" max="32767" attributes="0"/>
<Group type="102" alignment="1" attributes="0">
<EmptySpace min="0" pref="0" max="32767" attributes="0"/>
<Component id="LABEL_LOC" min="-2" max="-2" attributes="0"/>
<EmptySpace max="32767" attributes="0"/>
<Component id="exportButton" min="-2" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="closeButton" min="-2" max="-2" attributes="0"/>
@@ -40,9 +41,12 @@
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Component id="statusLabel" min="-2" max="-2" attributes="0"/>
<EmptySpace type="unrelated" max="-2" attributes="0"/>
<Group type="103" groupAlignment="3" attributes="0">
<Component id="closeButton" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="exportButton" alignment="3" min="-2" max="-2" attributes="0"/>
<Group type="103" groupAlignment="0" attributes="0">
<Group type="103" groupAlignment="3" attributes="0">
<Component id="closeButton" alignment="3" min="-2" max="-2" attributes="0"/>
<Component id="exportButton" alignment="3" min="-2" max="-2" attributes="0"/>
</Group>
<Component id="LABEL_LOC" alignment="0" min="-2" max="-2" attributes="0"/>
</Group>
<EmptySpace max="-2" attributes="0"/>
</Group>
@@ -104,5 +108,12 @@
</Property>
</Properties>
</Component>
<Component class="javax.swing.JLabel" name="LABEL_LOC">
<Properties>
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="org/sleuthkit/autopsy/report/Bundle.properties" key="ReportPanel.LABEL_LOC.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
</Properties>
</Component>
</SubComponents>
</Form>

View File

@@ -40,6 +40,7 @@ import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.autopsy.coreutils.FileUtil;
import org.sleuthkit.autopsy.coreutils.Logger;
@@ -70,6 +71,7 @@ public class ReportPanel extends javax.swing.JPanel {
closeButton = new javax.swing.JButton();
exportButton = new javax.swing.JButton();
statusLabel = new javax.swing.JLabel();
LABEL_LOC = new javax.swing.JLabel();
reportScrollPane.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(ReportPanel.class, "ReportPanel.reportScrollPane.border.title"))); // NOI18N
@@ -97,6 +99,8 @@ public class ReportPanel extends javax.swing.JPanel {
org.openide.awt.Mnemonics.setLocalizedText(statusLabel, org.openide.util.NbBundle.getMessage(ReportPanel.class, "ReportPanel.statusLabel.text")); // NOI18N
org.openide.awt.Mnemonics.setLocalizedText(LABEL_LOC, org.openide.util.NbBundle.getMessage(ReportPanel.class, "ReportPanel.LABEL_LOC.text")); // NOI18N
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
@@ -106,7 +110,8 @@ public class ReportPanel extends javax.swing.JPanel {
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(reportScrollPane)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(0, 493, Short.MAX_VALUE)
.addComponent(LABEL_LOC)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(exportButton)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(closeButton))
@@ -117,13 +122,15 @@ public class ReportPanel extends javax.swing.JPanel {
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(reportScrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 241, Short.MAX_VALUE)
.addComponent(reportScrollPane)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(statusLabel)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(closeButton)
.addComponent(exportButton))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(closeButton)
.addComponent(exportButton))
.addComponent(LABEL_LOC))
.addContainerGap())
);
}// </editor-fold>//GEN-END:initComponents
@@ -140,7 +147,9 @@ public class ReportPanel extends javax.swing.JPanel {
public void setFinishedReportText() {
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
String reportText = "These reports were generated on " + dateFormat.format(new Date()) + ".";
String loc = "Reports extracted to: " + Case.getCurrentCase().getCaseDirectory() + File.separator + "Reports";
statusLabel.setText(reportText);
LABEL_LOC.setText(loc);
final JPanel tempPanel = new JPanel(new GridBagLayout());
//tempPanel.setMinimumSize(new Dimension(540,240));
@@ -188,7 +197,7 @@ public class ReportPanel extends javax.swing.JPanel {
c.gridy = ++cc;
c.insets = new Insets(0, 0, 15, 0); // row padding
JLabel pathLabel = new JLabel(path);
tempPanel.add(pathLabel, c);
//tempPanel.add(pathLabel, c);
tempPanel.revalidate();
tempPanel.repaint();
@@ -231,6 +240,7 @@ public class ReportPanel extends javax.swing.JPanel {
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel LABEL_LOC;
private javax.swing.JButton closeButton;
private javax.swing.JButton exportButton;
private javax.swing.JScrollPane reportScrollPane;