private void createMenu() {
		
		menu = new JMenuBar();
		fileMenu = new JMenu("菜单");
		userMenu = new JMenu("用户");
		helpMenu = new JMenu("帮助");
		
		JMenuItem newItem = new JMenuItem("新建");
		newItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,InputEvent.CTRL_MASK));
		JMenuItem chooseItem = new JMenuItem("更改储存路径");
		chooseItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M,InputEvent.CTRL_MASK));
		
		loginItem = new JMenuItem("用户登陆");
		loginItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L,InputEvent.CTRL_MASK));
		registerItem = new JMenuItem("账户注册");
		registerItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R,InputEvent.CTRL_MASK));
		changePassWordItem = new JMenuItem("修改密码");
		changePassWordItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H,InputEvent.CTRL_MASK));
		logoutItem = new JMenuItem("安全退出");
		logoutItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,InputEvent.CTRL_MASK));
		
		JMenuItem declareItem = new JMenuItem("版本：1.0");
		
		fileMenu.add(newItem);
		fileMenu.add(chooseItem);
		
		userMenu.add(loginItem);
		
		if(!LoginProxy.isSetRoot())
			userMenu.add(registerItem);
		
		userMenu.add(changePassWordItem);
		userMenu.add(logoutItem);
		
		helpMenu.add(declareItem);
		
		newItem.addActionListener(new ActionListener() {

			public void actionPerformed(ActionEvent e) {
				if(tablePanel.newFileDir())
					showTable() ;
			}
		});
		
		loginItem.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent arg0) {
				loginPanel.showLoginDiglog();
			}
		});
		
		chooseItem.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e) {
				pathPanel.showDialog();
			}
		});
		
		changePassWordItem.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e) {
				if(currentUser.isLogin()){
					registerPanel.showChangePasswordDiglog(currentUser);
					showRegisterPanel();
				}
				else
					JOptionPane.showMessageDialog(null, "请先登录", "提醒", JOptionPane.ERROR_MESSAGE);
			}
			
		});
		
		registerItem.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e) {
				showRegisterPanel();
			}
		});
		
		logoutItem.addActionListener(new ActionListener(){
			@Override
			public void actionPerformed(ActionEvent arg0) {
				currentUser.initUser();
				loginItem.setText("登录");
				loginItem.setEnabled(true);
			}
		});

		menu.add(fileMenu);
		menu.add(userMenu);
		menu.add(helpMenu);
		setJMenuBar(menu);
		
		JToolBar tool = new JToolBar(JToolBar.HORIZONTAL);
		
		JButton jbtBack = new JButton(new ImageIcon(
				getClass().getResource("/UI/image/arrow_left.png")));
		setButton(jbtBack);
		jbtBack.setMnemonic(KeyEvent.VK_B);
		
		JButton jbtAhead = new JButton(new ImageIcon(
				getClass().getResource("/UI/image/arrow_right.png")));
		setButton(jbtAhead);
		jbtAhead.setMnemonic(KeyEvent.VK_P);
		
		JButton jbtHome = new JButton("首页", new ImageIcon(
				getClass().getResource("/UI/image/home.png")));
		setButton(jbtHome);
		jbtHome.setMnemonic(KeyEvent.VK_H);
		
		JButton jbtFile = new JButton("新建", new ImageIcon(
				getClass().getResource("/UI/image/add.png")));
		setButton(jbtFile);
		jbtFile.setMnemonic(KeyEvent.VK_N);

		JButton jbtTable = new JButton("电话本",new ImageIcon(
				getClass().getResource("/UI/image/address.png")));
		setButton(jbtTable);
		jbtTable.setMnemonic(KeyEvent.VK_T);
		
		JButton jbtUser = new JButton("登录",new ImageIcon(
				getClass().getResource("/UI/image/user.png")));
		setButton(jbtUser);
		jbtUser.setMnemonic(KeyEvent.VK_L);
		
		jbtFile.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				if(tablePanel.newFileDir())
					showTable() ;
			}	
		});
		
		jbtBack.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e) {
				showBack();
			}
		});
		
		jbtAhead.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e) {
				showAhead();
			}
		});
		
		jbtHome.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent arg0) {		
				showHome();
			}
		});

		jbtTable.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e) {		
				showTable();
			}
		});
		
		jbtUser.addActionListener(new ActionListener(){
			public void actionPerformed(ActionEvent e) {
				loginPanel.showLoginDiglog();
			}
		});

		tool.setFloatable(true);
		tool.add(jbtBack);
		tool.add(jbtAhead);
		tool.add(jbtHome);
		tool.add(jbtFile);
		tool.add(jbtTable);
		tool.add(jbtUser);
		
		add(tool,BorderLayout.NORTH);
		
	}