void initBar() {
		// 初始化文件菜单
		Logger.getLogger("com.xby.log").info(0 + "-->" + imgPathStr.get(0));
		Logger.getLogger("com.xby.log").info(1 + "imgPath-->" + imgPath);
		menuBar = new JJMenuBar();
		JMenu[] jmenu = new JMenu[jmenuStr.length];
		jitem = new JJMenuItem[jitemStr.length][];
		jmenu[3] = new JMenu("格式");
		initFormat(jmenu[3]);// 初始化格式菜单
		menuBar.add(jmenu[3]);
		for (int i = 0; i < jmenu.length; i++) {
			if (i == 3)
				continue;
			jmenu[i] = new JJMenu(jmenuStr[i]);
			jmenu[i].setCursor(cursor);
			jitem[i] = new JJMenuItem[jitemStr[i].length];
			for (int j = 0; j < jitem[i].length; j++) {
				if ("".equals(jitemStr[i][j])) {
					jmenu[i].addSeparator();
				} else {
					jitem[i][j] = new JJMenuItem(jitemStr[i][j]);
					jitem[i][j].setCursor(cursor);
					jitem[i][j].addActionListener(this);
					jmenu[i].add(jitem[i][j]);
					if (shortcut[i][j] == ' ') {
						continue;
					} else {
						jitem[i][j].setAccelerator(KeyStroke.getKeyStroke(
								shortcut[i][j], InputEvent.CTRL_MASK));
					}
				}
			}

			menuBar.add(jmenu[i]);
		}
		menuBar.setCursor(cursor);
		setJMenuBar(menuBar);
		initPopMenu();
		// initTextArea();

	}