submenu.add(editor.bind(mxResources.get("gridColor"),
new GridColorAction()));
submenu.addSeparator();
submenu.add(editor.bind(mxResources.get("dashed"), new GridStyleAction(
mxGraphComponent.GRID_STYLE_DASHED)));
submenu.add(editor.bind(mxResources.get("dot"), new GridStyleAction(
mxGraphComponent.GRID_STYLE_DOT)));
submenu.add(editor.bind(mxResources.get("line"), new GridStyleAction(
mxGraphComponent.GRID_STYLE_LINE)));
submenu.add(editor.bind(mxResources.get("cross"), new GridStyleAction(
mxGraphComponent.GRID_STYLE_CROSS)));
menu.addSeparator();
submenu = (JMenu) menu.add(new JMenu(mxResources.get("layout")));