mirror of
https://github.com/elisspace/autopsy.git
synced 2026-10-01 23:09:56 +00:00
Update the create button. The new icon can be improved later.
This commit is contained in:
@@ -252,9 +252,7 @@ final class HashDbCreateDatabaseDialog extends javax.swing.JDialog {
|
||||
}
|
||||
int retval = fc.showSaveDialog(this);
|
||||
if (retval == JFileChooser.APPROVE_OPTION) {
|
||||
File f = fc.getSelectedFile();
|
||||
|
||||
///@todo check if file already exists
|
||||
File f = fc.getSelectedFile();
|
||||
|
||||
try {
|
||||
String filePath = f.getCanonicalPath();
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
</Group>
|
||||
</Group>
|
||||
</Group>
|
||||
<Component id="importButton1" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="importButton1" alignment="0" min="-2" pref="133" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace pref="40" max="32767" attributes="0"/>
|
||||
</Group>
|
||||
@@ -385,11 +385,14 @@
|
||||
<Component class="javax.swing.JButton" name="importButton1">
|
||||
<Properties>
|
||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
||||
<Image iconType="3" name="/org/sleuthkit/autopsy/hashdatabase/import16.png"/>
|
||||
<Image iconType="3" name="/org/sleuthkit/autopsy/hashdatabase/btn_icon_create_new_16.png"/>
|
||||
</Property>
|
||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||
<ResourceString bundle="org/sleuthkit/autopsy/hashdatabase/Bundle.properties" key="HashDbManagementPanel.importButton1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||
</Property>
|
||||
<Property name="margin" type="java.awt.Insets" editor="org.netbeans.beaninfo.editors.InsetsEditor">
|
||||
<Insets value="[2, 11, 2, 14]"/>
|
||||
</Property>
|
||||
<Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
|
||||
<Dimension value="[140, 25]"/>
|
||||
</Property>
|
||||
|
||||
@@ -279,8 +279,9 @@ final class HashDbManagementPanel extends javax.swing.JPanel implements OptionsP
|
||||
|
||||
org.openide.awt.Mnemonics.setLocalizedText(optionsLabel, org.openide.util.NbBundle.getMessage(HashDbManagementPanel.class, "HashDbManagementPanel.optionsLabel.text")); // NOI18N
|
||||
|
||||
importButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/hashdatabase/import16.png"))); // NOI18N
|
||||
importButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/sleuthkit/autopsy/hashdatabase/btn_icon_create_new_16.png"))); // NOI18N
|
||||
org.openide.awt.Mnemonics.setLocalizedText(importButton1, org.openide.util.NbBundle.getMessage(HashDbManagementPanel.class, "HashDbManagementPanel.importButton1.text")); // NOI18N
|
||||
importButton1.setMargin(new java.awt.Insets(2, 11, 2, 14));
|
||||
importButton1.setMaximumSize(new java.awt.Dimension(140, 25));
|
||||
importButton1.setMinimumSize(new java.awt.Dimension(140, 25));
|
||||
importButton1.setPreferredSize(new java.awt.Dimension(140, 25));
|
||||
@@ -338,7 +339,7 @@ final class HashDbManagementPanel extends javax.swing.JPanel implements OptionsP
|
||||
.addComponent(useForIngestCheckbox)
|
||||
.addComponent(showInboxMessagesCheckBox)
|
||||
.addComponent(indexButton, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)))))
|
||||
.addComponent(importButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addComponent(importButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE))
|
||||
.addContainerGap(40, Short.MAX_VALUE))
|
||||
);
|
||||
layout.setVerticalGroup(
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 744 B |
Reference in New Issue
Block a user