代码拉取完成,页面将自动刷新
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);
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。