亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
91高清在线观看| 中文字幕一区二区三区在线观看 | 久久久国产一区二区三区四区小说| www国产成人免费观看视频 深夜成人网| 日韩一区在线播放| 激情五月播播久久久精品| 色88888久久久久久影院按摩| 精品久久人人做人人爽| 亚洲精品国产a久久久久久 | 欧美精品一区二区在线播放| 亚洲六月丁香色婷婷综合久久 | 五月天激情小说综合| 99天天综合性| 国产三级精品三级在线专区| 另类小说综合欧美亚洲| 欧美日韩mp4| 悠悠色在线精品| av在线一区二区| 国产网站一区二区三区| 久久精品免费看| 在线免费观看日韩欧美| 中文字幕一区视频| 成人午夜私人影院| 国产精品视频免费看| 国产一区二区三区电影在线观看| 5858s免费视频成人| 亚洲国产综合人成综合网站| 一本到高清视频免费精品| 国产精品国产三级国产aⅴ中文| 国产美女娇喘av呻吟久久| 欧美一级艳片视频免费观看| 天天av天天翘天天综合网色鬼国产| 91麻豆精品一区二区三区| 国产女人aaa级久久久级 | 日韩av成人高清| 欧美美女视频在线观看| 午夜精品在线视频一区| 在线免费观看日本一区| 亚洲美女偷拍久久| 在线一区二区视频| 无吗不卡中文字幕| 日韩欧美高清dvd碟片| 日韩黄色在线观看| 精品国产一区二区三区忘忧草| 九九精品视频在线看| 久久久久综合网| 成人久久18免费网站麻豆 | 国产色婷婷亚洲99精品小说| 国产成人av福利| 中文字幕在线播放不卡一区| 色网综合在线观看| 日本在线观看不卡视频| 精品久久久久香蕉网| 成人精品免费网站| 亚洲一区二区三区不卡国产欧美 | 91丝袜高跟美女视频| 亚洲国产精品视频| 亚洲精品一区二区三区在线观看 | 欧美日韩在线直播| 久久国产福利国产秒拍| 中文字幕av资源一区| 91蜜桃免费观看视频| 久草中文综合在线| 国产欧美精品一区二区色综合朱莉| 91在线小视频| 日日夜夜一区二区| 国产日韩在线不卡| 欧美日韩精品福利| 国产精品亚洲视频| 亚洲成人精品一区| 中文字幕av在线一区二区三区| 欧美性生活大片视频| 国产一区三区三区| 亚洲国产精品久久久男人的天堂| 精品国产成人系列| 欧美性生活影院| 国产.欧美.日韩| 亚洲高清一区二区三区| 亚洲国产成人在线| 日韩视频在线你懂得| 91老师国产黑色丝袜在线| 久久99精品国产麻豆婷婷洗澡| 亚洲欧美另类小说| 久久久久免费观看| 欧美一级片在线| 色婷婷av一区二区三区gif| 国产美女娇喘av呻吟久久| 午夜视频一区二区三区| 国产精品短视频| 国产夜色精品一区二区av| 91精品国产综合久久香蕉的特点| 91丝袜呻吟高潮美腿白嫩在线观看| 精品一区二区在线视频| 偷拍一区二区三区| 亚洲免费av观看| 亚洲婷婷综合色高清在线| 久久人人爽爽爽人久久久| 欧美放荡的少妇| 欧美色图12p| 色先锋资源久久综合| av午夜一区麻豆| 国产不卡视频一区二区三区| 国产真实乱对白精彩久久| 日韩国产欧美三级| 偷窥少妇高潮呻吟av久久免费| 亚洲美女免费在线| 亚洲精品中文在线影院| 国产精品不卡在线| 亚洲品质自拍视频网站| 国产欧美日韩中文久久| 久久―日本道色综合久久| 欧美精品一区二区三区蜜臀| 日韩女优毛片在线| 精品国产一区久久| 精品国产不卡一区二区三区| 精品免费99久久| 精品乱人伦一区二区三区| 精品日产卡一卡二卡麻豆| 精品久久久久99| 337p粉嫩大胆色噜噜噜噜亚洲 | 中文字幕欧美一| 亚洲欧美日韩一区二区 | 国产精品一区二区在线看| 国产美女一区二区| 成人综合婷婷国产精品久久免费| 国产91丝袜在线播放九色| 成人av影视在线观看| 91欧美一区二区| 欧美私模裸体表演在线观看| 欧美日韩免费观看一区三区| 6080yy午夜一二三区久久| 精品国精品国产| 国产精品区一区二区三区| 国产精品国产精品国产专区不片| 亚洲黄色性网站| 日本va欧美va欧美va精品| 国产美女av一区二区三区| av日韩在线网站| 欧美嫩在线观看| 久久色视频免费观看| 国产精品你懂的在线欣赏| 亚洲精品视频在线| 奇米色一区二区三区四区| 国产麻豆视频一区| 色综合久久88色综合天天| 欧美日韩电影一区| 精品国产第一区二区三区观看体验 | 中文在线免费一区三区高中清不卡| 国产精品每日更新在线播放网址| 亚洲一区在线电影| 国产中文字幕精品| 99视频一区二区三区| 91精品国产91久久久久久一区二区 | 欧美日韩高清影院| 国产日韩v精品一区二区| 亚洲午夜一区二区| 国产精品影视在线| 欧美撒尿777hd撒尿| 26uuu精品一区二区在线观看| 亚洲色图视频免费播放| 奇米影视一区二区三区| 91在线无精精品入口| 日韩欧美国产电影| 亚洲免费观看高清完整版在线观看| 免费观看30秒视频久久| 91蝌蚪porny九色| 久久综合狠狠综合久久综合88 | 国产精品免费视频网站| 午夜精品久久久久久久久久久| 国产91精品免费| 欧美mv日韩mv国产网站| 一区二区免费在线播放| 国产成人亚洲综合a∨猫咪| 欧美午夜电影在线播放| 国产精品欧美一级免费| 久久成人久久爱| 制服丝袜亚洲播放| 亚洲第一在线综合网站| gogo大胆日本视频一区| 2020国产精品自拍| 麻豆久久久久久| 这里只有精品99re| 亚洲午夜电影网| 在线影视一区二区三区| 18成人在线观看| 国产成人av电影免费在线观看| 欧美成人女星排行榜| 日韩激情视频网站| 91精品国产入口| 首页亚洲欧美制服丝腿| 欧美日韩一二区| 一区二区欧美视频| 欧美在线一二三四区| 一区二区在线观看视频| 99久久亚洲一区二区三区青草| 国产精品天干天干在线综合| 国产精品资源网站| 久久九九国产精品| 福利电影一区二区三区| 国产调教视频一区|