import .*;
import .*;
import .*;
public class MainFrame extends JFrame{//置换加密算法
private JPanel panel1 = null;
private JPanel panel2 = null;
private JPanel panel11 = null;
private JPanel panel12 = null;
private JPanel panel13 = null;
private JPanel panel14 = null;
private JPanel panel15 = null;
private JPanel panel21 = null;
private JPanel panel22 = null;
private JPanel panel23 = null;
private JPanel panel24 = null;
private JPanel panel25 = null;
private JLabel label1 = null;
private JLabel label2 = null;
private JLabel label3 = null;
private JLabel label4 = null;
private JLabel label5 = null;
private JLabel label6 = null;
private JLabel label7 = null;
private JLabel label8 = null;
private JButton button1=null;
private JButton button2=null;
private JButton button3=null;
private JButton button4=null;
private JTextArea ta1 = null;
private JTextArea ta2 = null;
private JTextArea ta3 = null;
private JTextArea ta4 = null;
private JTextField tf1 = null;
private JTextField tf2 = null;
private Container container;
private String text=null; //用于明文
private String key1=null; //用于密钥1
private String cipher=null; //用于密文
private String key2=null; //用于密钥2
public MainFrame () {
container = ();
label1=new JLabel("置换加密");
label2=new JLabel("置换解密");
label3=new JLab
置换加密算法 来自淘豆网www.taodocs.com转载请标明出处.