📄 test.java
字号:
import javax.swing.JPanel;
import java.awt.Frame;
import java.awt.BorderLayout;
import javax.swing.JDialog;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JButton;
public class test extends JDialog {
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
private JLabel jLabel = null;
private JLabel jLabel1 = null;
private JLabel jLabel2 = null; // @jve:decl-index=0:visual-constraint="525,413"
private JTextArea m = null;
private JTextField key = null;
private JLabel jLabel21 = null;
private JTextField iv = null;
private JButton ecbja = null;
private JTextField cbcjat = null;
private JButton ebcjeb = null;
private JTextArea cbcjet = null;
private JButton cbcjab = null;
private JTextField ebcja = null;
private JButton cbcjeb = null;
private JButton ebcjab = null;
private JTextArea ebcjet = null;
/**
* This method initializes jLabel2
*
* @return javax.swing.JLabel
*/
private JLabel getJLabel2() {
if (jLabel2 == null) {
// jLabel2 = new JLabel();
jLabel2.setText("JLabel");
}
return jLabel2;
}
/**
* This method initializes m
*
* @return javax.swing.JTextArea
*/
private JTextArea getM() {
if (m == null) {
m = new JTextArea();
}
return m;
}
/**
* This method initializes key
*
* @return javax.swing.JTextField
*/
private JTextField getKey() {
if (key == null) {
key = new JTextField();
}
return key;
}
/**
* This method initializes iv
*
* @return javax.swing.JTextField
*/
private JTextField getIv() {
if (iv == null) {
iv = new JTextField();
}
return iv;
}
/**
* This method initializes ecbja
*
* @return javax.swing.JButton
*/
private JButton getEcbja() {
if (ecbja == null) {
ecbja = new JButton();
ecbja.setText("EBC加密");
}
return ecbja;
}
/**
* This method initializes cbcjat
*
* @return javax.swing.JTextField
*/
private JTextField getCbcjat() {
if (cbcjat == null) {
cbcjat = new JTextField();
}
return cbcjat;
}
/**
* This method initializes ebcjeb
*
* @return javax.swing.JButton
*/
private JButton getEbcjeb() {
if (ebcjeb == null) {
ebcjeb = new JButton();
ebcjeb.setText("EBC解密");
ebcjeb.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
}
});
}
return ebcjeb;
}
/**
* This method initializes cbcjet
*
* @return javax.swing.JTextArea
*/
private JTextArea getCbcjet() {
if (cbcjet == null) {
cbcjet = new JTextArea();
}
return cbcjet;
}
/**
* This method initializes cbcjab
*
* @return javax.swing.JButton
*/
private JButton getCbcjab() {
if (cbcjab == null) {
cbcjab = new JButton();
cbcjab.setText("CBC加密");
cbcjab.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
}
});
}
return cbcjab;
}
/**
* This method initializes ebcja
*
* @return javax.swing.JTextField
*/
private JTextField getEbcja() {
if (ebcja == null) {
ebcja = new JTextField();
}
return ebcja;
}
/**
* This method initializes cbcjeb
*
* @return javax.swing.JButton
*/
private JButton getCbcjeb() {
if (cbcjeb == null) {
cbcjeb = new JButton();
cbcjeb.setText("CBC解密");
cbcjeb.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
}
});
}
return cbcjeb;
}
/**
* This method initializes ebcjab
*
* @return javax.swing.JButton
*/
private JButton getEbcjab() {
if (ebcjab == null) {
ebcjab = new JButton();
ebcjab.setText("EBC加密");
ebcjab.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
System.out.println("actionPerformed()"); // TODO Auto-generated Event stub actionPerformed()
}
});
}
return ebcjab;
}
/**
* This method initializes ebcjet
*
* @return javax.swing.JTextArea
*/
private JTextArea getEbcjet() {
if (ebcjet == null) {
ebcjet = new JTextArea();
}
return ebcjet;
}
/**
* @param args
*/
public static void main(String[] args) {
// TODO 自动生成方法存根
test te=new test();
//te.super();
te.initialize();
}
/**
* @param owner
*/
//public test() {
// super();
//initialize();
//}
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
this.setSize(600, 400);
this.setTitle("DES");
this.setContentPane(getJContentPane());
}
/**
* This method initializes jContentPane
*
* @return javax.swing.JPanel
*/
private JPanel getJContentPane() {
if (jContentPane == null) {
jLabel21 = new JLabel();
jLabel21.setText("请输入IV向量");
jLabel1 = new JLabel();
jLabel1.setText("请输入密钥");
jLabel = new JLabel();
jLabel.setText("请输入明文");
GridLayout gridLayout = new GridLayout();
gridLayout.setRows(0);
gridLayout.setHgap(10);
gridLayout.setVgap(10);
gridLayout.setColumns(2);
jContentPane = new JPanel();
jContentPane.setLayout(gridLayout);
jContentPane.add(jLabel, null);
jContentPane.add(getM(), null);
jContentPane.add(jLabel1, null);
jContentPane.add(getKey(), null);
jContentPane.add(jLabel21, null);
jContentPane.add(getIv(), null);
jContentPane.add(getCbcjab(), null);
jContentPane.add(getCbcjat(), null);
jContentPane.add(getCbcjeb(), null);
jContentPane.add(getCbcjet(), null);
jContentPane.add(getEbcjab(), null);
jContentPane.add(getEbcja(), null);
jContentPane.add(getEbcjeb(), null);
jContentPane.add(getEbcjet(), null);
}
return jContentPane;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -