1 Star 0 Fork 0

BESTI.IS.JAVA2018/20165214ZWY

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Program.java 1.97 KB
一键复制 编辑 原始数据 按行查看 历史
20165214朱文远 提交于 7年前 . 主类
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.SQLException;
import java.util.*;
/*
主函数,开始于2018.5.14。
*/
public class Program{
public static void main(String[] args) throws SQLException {
WindowActionEvent win=new WindowActionEvent();
win.setBounds(700,450,450,100);
win.setTitle("Java红茶加密存储系统");
CreatTable.Creat();
}
public static class WindowActionEvent extends JFrame {
JButton button1;
JButton button2;
JButton button3;
JButton button4;
public WindowActionEvent() {
init();
setVisible(true);
setResizable(false);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
void init() {
FlowLayout flowLayout=new FlowLayout();
flowLayout.setAlignment(FlowLayout.CENTER);
setLayout(flowLayout);
button1 = new JButton("登录");
button1.setPreferredSize(new Dimension(100,40));
button2 = new JButton("注册");
button2.setPreferredSize(new Dimension(100,40));
button3 = new JButton("注销");
button3.setPreferredSize(new Dimension(100,40));
button4 = new JButton("修改密码");
button4.setPreferredSize(new Dimension(100,40));
button1.addActionListener(event->{
Login.Windows();
/*
login.setName();
login.setCipher();
login.LOGIN();
*/
});
button2.addActionListener(event->{
Register.Windows();
});
button3.addActionListener(event->{
Cancel.Windows();
});
button4.addActionListener(event->{
Modify.Windows();
});
add(button1);
add(button2);
add(button3);
add(button4);
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/BESTI-IS-JAVA-2018/20165214ZWY.git
git@gitee.com:BESTI-IS-JAVA-2018/20165214ZWY.git
BESTI-IS-JAVA-2018
20165214ZWY
20165214ZWY
master

搜索帮助