submenu.add(editor.bind(mxResources.get("pageBackground"), new PageBackgroundAction()));
submenu = (JMenu) menu.add(new JMenu(mxResources.get("grid")));
submenu.add(editor.bind(mxResources.get("gridSize"), new PromptPropertyAction(graph, "Grid Size", "GridSize")));
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)));