01: package snow.fileencryptor;
02:
03: import javax.swing.*;
04: import javax.swing.border.*;
05: import javax.swing.filechooser.*;
06: import java.util.*;
07: import java.util.zip.*;
08: import java.security.*;
09: import java.security.spec.*;
10: import javax.crypto.spec.*;
11: import javax.crypto.*;
12: import snow.utils.gui.*;
13: import snow.crypto.*;
14: import java.io.*;
15:
16: public class EncryptOptionsPanel extends JPanel {
17: JCheckBox wipeSourceCB = new JCheckBox("Delete source file");
18:
19: public EncryptOptionsPanel(boolean wipeSource) {
20: super ();
21: setBorder(new CompoundBorder(new EmptyBorder(3, 3, 3, 3),
22: new TitledBorder("Options")));
23: wipeSourceCB.setSelected(wipeSource);
24: add(wipeSourceCB);
25: }
26:
27: public boolean doWipeSource() {
28: return wipeSourceCB.isSelected();
29: }
30:
31: }
|