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

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

?? indexframe.java

?? Java企業人事管理系統源碼javahr 配置Oracle數據庫 在配置Oracle數據庫時
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
package com.mwq.frame;
// Download by http://www.codefans.net
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一区二区三区免费野_久草精品视频
国产精品久久夜| 日韩高清欧美激情| 亚洲一区在线视频观看| 韩国精品久久久| 欧美日韩一区中文字幕| 国产日产精品一区| eeuss鲁片一区二区三区在线看| 欧美日韩精品一区视频| 国产精品亲子伦对白| 另类成人小视频在线| 欧洲一区在线电影| 中文字幕一区二区三区不卡| 久久99久国产精品黄毛片色诱| 在线观看中文字幕不卡| 国产精品传媒在线| 国产美女娇喘av呻吟久久| 7777精品伊人久久久大香线蕉的 | 亚洲日本免费电影| 久久99日本精品| 在线不卡中文字幕| 亚洲一区二区三区视频在线播放| 成人精品国产免费网站| 2020国产精品自拍| 精品综合久久久久久8888| 欧美日韩国产综合一区二区| 亚洲精品中文字幕乱码三区| 成人深夜视频在线观看| 日本一区二区三区四区| 国产99久久精品| 国产日韩av一区| 懂色av噜噜一区二区三区av| 久久久精品影视| 国产成人精品免费视频网站| 久久精品视频免费| 国产黄色精品网站| 欧美激情中文字幕一区二区| 国产麻豆精品视频| 国产午夜精品在线观看| 国产精品123区| 国产精品女上位| 日韩三级视频在线看| 日韩在线一区二区| 欧美一级理论性理论a| 免费人成在线不卡| 日韩欧美的一区二区| 国产一区中文字幕| 亚洲国产成人在线| 91视频国产观看| 亚洲成人一二三| 欧美一区二区三区免费在线看| 日本特黄久久久高潮| 欧美精品一区二区久久婷婷| 国产成人鲁色资源国产91色综| 欧美经典一区二区三区| 成人av动漫在线| 亚洲在线免费播放| 欧美一区二区国产| 韩国av一区二区三区在线观看| 国产欧美精品区一区二区三区| 成人av在线电影| 亚洲一区二区在线播放相泽| 91精品国产品国语在线不卡| 国产一区二区视频在线播放| 国产精品成人免费在线| 欧美三级午夜理伦三级中视频| 欧美96一区二区免费视频| 久久久噜噜噜久噜久久综合| a在线欧美一区| 日本欧美在线观看| 中文字幕第一页久久| 欧美色视频在线观看| 激情小说亚洲一区| 亚洲主播在线观看| 久久久综合九色合综国产精品| 91麻豆福利精品推荐| 老司机精品视频在线| 亚洲欧洲三级电影| 日韩欧美二区三区| 色综合天天综合给合国产| 老色鬼精品视频在线观看播放| 成人欧美一区二区三区小说| 日韩精品一区二区三区在线观看| 欧美一级一级性生活免费录像| 成人sese在线| 久久激情综合网| 亚洲国产三级在线| 国产精品麻豆网站| 精品国产区一区| 欧美久久一二区| 色噜噜狠狠成人网p站| 国产一区二区不卡老阿姨| 亚洲v日本v欧美v久久精品| 国产精品美女久久久久av爽李琼| 91精品在线一区二区| 色999日韩国产欧美一区二区| 激情另类小说区图片区视频区| 亚洲午夜久久久久久久久久久 | 91久久精品一区二区三区| 国产综合成人久久大片91| 五月激情综合网| 一区二区久久久| 激情图片小说一区| 欧美成人r级一区二区三区| 国产成人精品一区二| 欧美aaa在线| 亚洲午夜精品一区二区三区他趣| 亚洲欧洲精品一区二区三区| 久久久精品tv| 久久蜜桃av一区二区天堂| 欧美一区二区在线免费观看| 欧美在线看片a免费观看| 99re这里都是精品| 91在线porny国产在线看| 国产91精品一区二区麻豆亚洲| 国产一区二区三区久久悠悠色av| 久久国产精品99久久人人澡| 日韩成人一区二区| 日本视频中文字幕一区二区三区| 亚洲成人免费视| 日韩精品免费专区| 日本vs亚洲vs韩国一区三区| 五月婷婷综合在线| 亚洲国产精品麻豆| 五月激情综合婷婷| 免费高清成人在线| 久久激情综合网| 国模冰冰炮一区二区| 国产精品911| av亚洲精华国产精华精华| 99视频在线观看一区三区| 色久综合一二码| 欧美日韩国产大片| 日韩欧美成人一区| 国产欧美精品一区二区色综合| 国产精品卡一卡二卡三| 亚洲精品中文字幕在线观看| 亚洲午夜免费视频| 精品亚洲成a人在线观看| 国产成人精品一区二区三区网站观看| 国产激情偷乱视频一区二区三区 | 欧美日韩夫妻久久| 日韩你懂的在线观看| 国产日韩欧美电影| 亚洲欧美国产高清| 麻豆国产欧美日韩综合精品二区| 精品在线免费视频| 成人av在线资源网| 欧美肥大bbwbbw高潮| 日韩精品在线一区二区| 国产人妖乱国产精品人妖| 一区二区三区日韩欧美| 蜜桃视频在线一区| 97se亚洲国产综合自在线不卡| 欧美人xxxx| 国产精品三级久久久久三级| 亚洲综合色视频| 国产一区二区在线看| 91福利精品视频| 精品国产乱码久久久久久蜜臀 | 亚洲一二三四区不卡| 久久电影国产免费久久电影| av毛片久久久久**hd| 日韩视频中午一区| 亚洲女人****多毛耸耸8| 免费高清视频精品| 在线精品视频免费观看| 国产欧美一区二区在线| 午夜国产不卡在线观看视频| 成人免费观看视频| 日韩午夜小视频| 亚洲欧美国产毛片在线| 国产在线精品一区二区三区不卡| 欧美在线看片a免费观看| 日本一区免费视频| 久久国产麻豆精品| 欧洲一区二区三区在线| 国产精品丝袜一区| 国内精品嫩模私拍在线| 欧美猛男男办公室激情| 最新国产精品久久精品| 国产一区二区久久| 日韩午夜中文字幕| 午夜伦欧美伦电影理论片| 97se亚洲国产综合自在线观| 国产午夜亚洲精品理论片色戒| 奇米色一区二区| 5月丁香婷婷综合| 亚洲成人动漫在线观看| 一本色道久久综合亚洲aⅴ蜜桃 | 在线91免费看| 亚洲一区二区欧美| 在线一区二区三区四区五区| 国产欧美一区二区三区网站| 韩国精品主播一区二区在线观看 | 97久久超碰精品国产| 久久精品一区二区三区四区| 男人的天堂久久精品| 91麻豆精品国产91久久久使用方法| 亚洲综合激情另类小说区| 一本色道**综合亚洲精品蜜桃冫 |