?? mainface.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 + -