📄 face.java
字号:
// SendPay.java
package classFile;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.sql.*;
class Face extends JPanel implements ActionListener
{
private JLabel welcome, name;
private JButton cancel;
public Face()
{
setLayout(null);
name = new JLabel("财务管理子系统-支出子系统");
name.setFont(new Font("华文琥珀", Font.PLAIN, 30));
welcome = new JLabel("Welcome you to use the system !!!! ", JLabel.CENTER);
welcome.setFont(new Font("Wide Latin", Font.PLAIN, 20));
setBackground(Color.yellow);
setForeground(Color.red);
cancel = new JButton("退出");
cancel.setBounds(630, 457, 60, 25);
add(cancel);
welcome.setBounds(50, 200, 600, 50);
name.setBounds(60, 50, 600, 50);
add(welcome);
add(name);
cancel.addActionListener(this);
}
public void actionPerformed(ActionEvent e)
{
System.exit(0);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -