提供测试使用的加解密验证工具🔧
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
800 B

package com.fr.password.tool.ui;
import javax.swing.*;
import java.awt.*;
public class MainFrame extends JFrame {
public MainFrame() {
initInterface();
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setVisible(true);
}
/**
* 初始化主界面的默认布局
*/
private void initInterface() {
setTitle(FrameConstants.TITLE);
setSize(FrameConstants.WIDTH, FrameConstants.HEIGHT);
setLayout(new BorderLayout());
setResizable(false);
// 默认是生成密钥的界面
chooseGenerateKeys();
}
private void chooseGenerateKeys(){
add(TopPanel.INSTANCE, BorderLayout.NORTH);
add(TipPanel.INSTANCE,BorderLayout.CENTER);
add(TextPanel.INSTANCE,BorderLayout.SOUTH);
}
}