亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? indexframe.java

?? 根據企業對人事管理的要求
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package com.mwq.frame;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Desktop;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.net.URL;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTree;
import javax.swing.SwingConstants;
import javax.swing.SwingUtilities;
import javax.swing.border.TitledBorder;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeCellRenderer;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;

import com.mwq.PersonnelManage;
import com.mwq.frame.personnel.BringUpSelectedPanel;
import com.mwq.frame.personnel.RecordSelectedPanel;
import com.mwq.frame.personnel.RewardsAndPunishmentPanel;
import com.mwq.frame.personnel.TimecardPanel;
import com.mwq.frame.system.DataPanel;
import com.mwq.frame.system.FrameworkPanel;
import com.mwq.frame.treatement.CriterionSetPanel;
import com.mwq.frame.treatement.PersonnelSetPanel;
import com.mwq.frame.treatement.ReportFormsPanel;
import com.mwq.frame.user.AddUserPanel;
import com.mwq.frame.user.UpdatePasswordDialog;
import com.mwq.hibernate.Dao;
import com.mwq.hibernate.mapping.TbRecord;

public class IndexFrame extends JFrame {

	private JTree tree;

	final JPanel rightPanel = new JPanel();

	private TbRecord record;

	private final Dao dao = Dao.getInstance();

	/**
	 * Launch the application
	 * 
	 * @param args
	 */
	public static void main(String args[]) {
		try {
			IndexFrame frame = new IndexFrame(null);
			frame.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the frame
	 */
	public IndexFrame(TbRecord tbRecord) {
		super();

		this.record = tbRecord;

		setResizable(false);
		setExtendedState(IndexFrame.MAXIMIZED_BOTH);// 設置窗口以最大化打開
		setTitle(" T 科技");
		setBounds(0, 0, 950, 700);
		setBounds(0, 0, 1024, 768);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		final JPanel topPanel = new JPanel();
		topPanel.setLayout(new BorderLayout());
		topPanel.setPreferredSize(new Dimension(0, 100));
		getContentPane().add(topPanel, BorderLayout.NORTH);

		final JLabel label = new JLabel();
		label.setHorizontalAlignment(SwingConstants.CENTER);
		label.setHorizontalTextPosition(SwingConstants.CENTER);
		URL resource = IndexFrame.this.getClass().getResource("/img/logo.JPG");
		ImageIcon icon = new ImageIcon(resource);
		label.setIcon(icon);
		label.setBorder(new TitledBorder(null, "",
				TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION, null, null));
		label.setPreferredSize(new Dimension(160, 0));
		topPanel.add(label, BorderLayout.WEST);

		final JPanel buttonPanel = new JPanel();// 創建工具欄面板
		final GridLayout gridLayout = new GridLayout(1, 0);// 創建一個水平箱式布局管理器對象
		gridLayout.setVgap(6);// 箱的垂直間隔為6像素
		gridLayout.setHgap(6);// 箱的水平間隔為6像素
		buttonPanel.setLayout(gridLayout);// 設置工具欄面板采用的布局管理器為箱式布局
		buttonPanel.setBackground(new Color(90, 130, 189));// 設置工具欄面板的背景色
		buttonPanel.setBorder(new TitledBorder(null, "",
				TitledBorder.DEFAULT_JUSTIFICATION,
				TitledBorder.DEFAULT_POSITION, null, null));// 設置工具欄面板采用的邊框樣式
		topPanel.add(buttonPanel, BorderLayout.CENTER);// 將工具欄面板添加到上級面板中

		final JButton recordShortcutKeyButton = new JButton();// 創建進入“檔案管理”的快捷按鈕
		resource = this.getClass().getResource("/img/record.JPG");
		icon = new ImageIcon(resource);
		recordShortcutKeyButton.setIcon(icon);
		// 為按鈕添加事件監聽器,用來捕獲按鈕被點擊的事件
		recordShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				rightPanel.removeAll();// 移除內容面板中的所有內容
				rightPanel.add(new RecordSelectedPanel(rightPanel),
						BorderLayout.CENTER);// 將檔案管理面版添加到內容面板中
				SwingUtilities.updateComponentTreeUI(rightPanel);// 刷新內容面板中的內容
			}
		});
		buttonPanel.add(recordShortcutKeyButton);

		final JButton timecardShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/timecard.JPG");
		icon = new ImageIcon(resource);
		timecardShortcutKeyButton.setIcon(icon);
		timecardShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				rightPanel.removeAll();
				rightPanel.add(new TimecardPanel(), BorderLayout.CENTER);
				SwingUtilities.updateComponentTreeUI(rightPanel);
			}
		});
		buttonPanel.add(timecardShortcutKeyButton);

		final JButton rewardsAndPunishmentShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/rewAndPun.JPG");
		icon = new ImageIcon(resource);
		rewardsAndPunishmentShortcutKeyButton.setIcon(icon);
		rewardsAndPunishmentShortcutKeyButton
				.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent e) {
						rightPanel.removeAll();
						rightPanel.add(new RewardsAndPunishmentPanel(),
								BorderLayout.CENTER);
						SwingUtilities.updateComponentTreeUI(rightPanel);
					}
				});
		buttonPanel.add(rewardsAndPunishmentShortcutKeyButton);

		final JButton reportFormsShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/stat.JPG");
		icon = new ImageIcon(resource);
		reportFormsShortcutKeyButton.setIcon(icon);
		reportFormsShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				rightPanel.removeAll();
				rightPanel.add(new ReportFormsPanel(), BorderLayout.CENTER);
				SwingUtilities.updateComponentTreeUI(rightPanel);
			}
		});
		buttonPanel.add(reportFormsShortcutKeyButton);

		final JButton basicDataShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/data.JPG");
		icon = new ImageIcon(resource);
		basicDataShortcutKeyButton.setIcon(icon);
		basicDataShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				rightPanel.removeAll();
				rightPanel.add(new DataPanel(), BorderLayout.CENTER);
				SwingUtilities.updateComponentTreeUI(rightPanel);
			}
		});
		buttonPanel.add(basicDataShortcutKeyButton);

		final JButton updatePasswordShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/password.JPG");
		icon = new ImageIcon(resource);
		updatePasswordShortcutKeyButton.setIcon(icon);
		if (record == null)// 當record為null時,說明是通過默認用戶登錄的,此時不能修改密碼
			updatePasswordShortcutKeyButton.setEnabled(false);// 在這種情況下設置按鈕不可用
		updatePasswordShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				rightPanel.removeAll();
				SwingUtilities.updateComponentTreeUI(rightPanel);
				UpdatePasswordDialog dialog = new UpdatePasswordDialog();// 創建用來修改密碼的對話框
				dialog.setRecord(record);// 將當前登錄管理員的檔案對象傳入對話框
				dialog.setVisible(true);// 設置對話框為可見的,即顯示對話框
			}
		});
		buttonPanel.add(updatePasswordShortcutKeyButton);

		final JButton counterShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/calculator.JPG");
		icon = new ImageIcon(resource);
		counterShortcutKeyButton.setIcon(icon);
		counterShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Desktop desktop = Desktop.getDesktop();// 獲得當前系統對象
				File file = new File("C:/WINDOWS/system32/calc.exe");// 創建一個系統計算器對象
				try {
					desktop.open(file);// 打開系統計算器
				} catch (Exception e1) {// 當打開失敗時,彈出提示信息
					JOptionPane.showMessageDialog(null, "很抱歉,未能打開系統自帶的計算器!",
							"友情提示", JOptionPane.INFORMATION_MESSAGE);
					return;
				}
			}
		});
		buttonPanel.add(counterShortcutKeyButton);

		final JButton excelShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/excel.JPG");
		icon = new ImageIcon(resource);
		excelShortcutKeyButton.setIcon(icon);
		excelShortcutKeyButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				Desktop desktop = Desktop.getDesktop();
				File file = new File("res/other/new.xls");
				try {
					desktop.open(file);
				} catch (Exception e1) {
					JOptionPane.showMessageDialog(null, "很抱歉,您的機器還沒有安裝Office!",
							"友情提示", JOptionPane.INFORMATION_MESSAGE);
					return;
				}
			}
		});
		buttonPanel.add(excelShortcutKeyButton);

		final JButton exitShortcutKeyButton = new JButton();
		resource = this.getClass().getResource("/img/exit.JPG");

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品 欧美精品| 粉嫩嫩av羞羞动漫久久久| 精品国产免费一区二区三区香蕉| 国产成人av电影在线播放| 午夜欧美2019年伦理| 国产精品美女久久久久久久久久久 | 日韩一级免费观看| 91丨porny丨蝌蚪视频| 亚洲最大成人网4388xx| 免费不卡在线观看| 久久久久久久久久久久电影| 日本麻豆一区二区三区视频| 欧美精品在线观看播放| 午夜精品久久久久久久99水蜜桃| 欧洲一区在线观看| 久久99国产精品久久| 日韩视频国产视频| 精品午夜久久福利影院| 午夜精品123| 中文字幕va一区二区三区| 国产一区二区精品久久99| 亚洲大片精品永久免费| 中文字幕一区二区三区蜜月| 精品国精品自拍自在线| 欧美日韩成人综合在线一区二区| 99视频一区二区三区| 国产91在线看| 国产自产高清不卡| 天天综合色天天| 国产精品久久久久9999吃药| 国产夫妻精品视频| 麻豆精品一区二区综合av| 一个色在线综合| 欧美国产精品劲爆| 久久久不卡网国产精品二区| 日韩精品一区二区三区在线| 制服丝袜在线91| 欧美区一区二区三区| 欧美日韩黄色一区二区| 欧美性视频一区二区三区| 一本大道久久a久久精二百| av一二三不卡影片| 不卡视频一二三| 99久久婷婷国产综合精品电影 | 欧美这里有精品| 色综合咪咪久久| 91浏览器在线视频| 色综合久久中文综合久久97 | 精品免费视频一区二区| 欧美一区二区三区影视| 日韩欧美中文字幕制服| 久久综合资源网| 国产三级精品视频| 国产精品久久久久久久久免费桃花 | 日韩一卡二卡三卡| 久久蜜臀中文字幕| 久久久久久免费| 国产亚洲欧美日韩在线一区| 欧美一区二区播放| 中文字幕欧美三区| 国产精品久线观看视频| 久久久91精品国产一区二区三区| 欧美一级午夜免费电影| 欧美妇女性影城| 欧美一区二区三区四区在线观看| 久久一日本道色综合| 91在线免费播放| 欧美日韩一区精品| 91精品国产欧美日韩| 欧美大片拔萝卜| 中文字幕在线免费不卡| 亚洲国产一二三| 精品一区二区三区视频| 91片黄在线观看| 91精品国产综合久久久蜜臀图片 | 欧美成人伊人久久综合网| 久久先锋资源网| 亚洲视频在线观看三级| 日本视频一区二区| 成人毛片视频在线观看| 欧美四级电影在线观看| 精品粉嫩超白一线天av| 亚洲日本va午夜在线影院| 三级在线观看一区二区| 国产成人精品网址| 欧美丝袜丝交足nylons图片| 久久综合久色欧美综合狠狠| 一区二区三区在线观看欧美| 精品无人码麻豆乱码1区2区 | 成人avav影音| 欧美一区二区三区在线观看视频| 欧美国产日韩在线观看| 日韩av中文字幕一区二区| 粉嫩av一区二区三区在线播放 | 亚洲男人的天堂在线观看| 男女性色大片免费观看一区二区 | 欧美色成人综合| 久久久久久久久久美女| 天使萌一区二区三区免费观看| 国产999精品久久久久久绿帽| 欧美人牲a欧美精品| 最新日韩在线视频| 国产在线国偷精品产拍免费yy| 色94色欧美sute亚洲线路一久| 欧美裸体一区二区三区| 蜜臀精品久久久久久蜜臀| 欧美一级国产精品| 成人精品亚洲人成在线| 精品日韩99亚洲| 亚洲电影第三页| 欧美视频在线不卡| 亚洲视频在线一区二区| 国产成人精品在线看| 欧美xingq一区二区| 国产精品亚洲专一区二区三区 | 久久久99精品免费观看不卡| 亚洲免费av高清| 国产成人免费网站| 日韩欧美电影一区| 午夜精品久久久久久久| 欧美在线观看禁18| 中文字幕精品一区二区三区精品| 日本成人超碰在线观看| 欧美日韩午夜影院| 亚洲精品亚洲人成人网在线播放| 国产v综合v亚洲欧| 久久久国产午夜精品| 狠狠色丁香婷婷综合久久片| 欧美精品在线观看一区二区| 中文字幕乱码一区二区免费| 91色九色蝌蚪| 国产欧美综合在线观看第十页| 久久电影国产免费久久电影 | 久久久久国产精品厨房| 男人的j进女人的j一区| 91精品国产综合久久婷婷香蕉| 天堂蜜桃一区二区三区| 欧美精品久久一区二区三区| 亚洲成人动漫在线观看| 欧美日韩视频专区在线播放| 亚洲电影欧美电影有声小说| 欧美色综合影院| 日韩高清不卡一区二区| 91精品婷婷国产综合久久性色| 午夜影院久久久| 日韩欧美另类在线| 国产真实乱偷精品视频免| 国产三级一区二区| 粉嫩久久99精品久久久久久夜| 欧美激情艳妇裸体舞| 91亚洲永久精品| 一区二区三区成人| 欧美日韩免费一区二区三区视频| 亚洲愉拍自拍另类高清精品| 欧美影院精品一区| 日韩精品91亚洲二区在线观看| 7777精品久久久大香线蕉| 日韩高清电影一区| 精品久久久久久久一区二区蜜臀| 久久福利视频一区二区| 中文字幕第一页久久| www.性欧美| 亚洲成人av免费| 日韩一区和二区| 国产成人午夜视频| 亚洲最快最全在线视频| 91欧美一区二区| 国产99久久久久| 欧美性大战久久久久久久| 日韩欧美精品在线视频| 91免费在线看| 色婷婷精品大视频在线蜜桃视频| 成人av电影免费在线播放| 国产精品影视网| 国产一区激情在线| 国产一区二区久久| 国产乱码精品一区二区三区忘忧草 | 久久久久久9999| 成人av网在线| 亚洲h在线观看| 久久婷婷国产综合精品青草| 91色乱码一区二区三区| 免费在线观看视频一区| 欧美激情综合五月色丁香小说| 91成人国产精品| 狠狠色丁香婷婷综合| 亚洲一区二区三区四区五区中文| 精品电影一区二区三区| 91国偷自产一区二区使用方法| 国内精品第一页| 夜夜嗨av一区二区三区网页| 精品日韩欧美一区二区| 色呦呦日韩精品| 国产精选一区二区三区| 亚洲福利一二三区| 中文字幕巨乱亚洲| 欧美不卡在线视频| 欧美日韩一区二区三区不卡| www.亚洲在线| 国产美女在线精品|