⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainface.java

📁 财务管理子系统-支出系统
💻 JAVA
字号:
// MainFace.java

package classFile;

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import javax.swing.event.*;
import java.sql.*;

class MainFace extends JFrame
{	
	private JTabbedPane chooseTP;
	private GoodsBuy goodsBuy;
	private OtherPayout otherPayout;
	private SendPay sendPay;
	private UserShow userShow;
	private Face face;
	
	public MainFace()
	{
		super("财务管理子系统-支出子系统");
		this.setIconImage(Toolkit.getDefaultToolkit().getImage("004.jpg"));
		
		try
		{
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}catch(Exception e){}
		
		setBounds(200, 100, 700, 550);
		setResizable(false);

		
		goodsBuy = new GoodsBuy();
		otherPayout = new OtherPayout();
		sendPay = new SendPay();
		userShow = new UserShow();
		face = new Face();
		
		chooseTP = new JTabbedPane();
		chooseTP.setFont(new Font("楷书", Font.BOLD, 13));
		chooseTP.setForeground(Color.red);
		
		chooseTP.addTab("首页", null, face, "facePage");
		chooseTP.addTab("物购支出", null, goodsBuy, "facePage");
		chooseTP.addTab("差旅支出", null, otherPayout, "facePage");
		chooseTP.addTab("工资支出", null, sendPay, "facePage");
		chooseTP.addTab("使用说明", null, userShow, "facePage");
		
		add(chooseTP);
	
		setVisible(true);		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	
	
	// 窗口关闭时清空内存
	protected void processWindowEvent(WindowEvent e) {
		if (e.getID() == WindowEvent.WINDOW_CLOSING) {
			System.exit(0);	
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -