face.java

来自「财务管理子系统-支出系统」· Java 代码 · 共 41 行

JAVA
41
字号
// 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 + =
减小字号Ctrl + -
显示快捷键?