menu.addSeparator();
submenu = (JMenu) menu.add(new JMenu(mxResources.get("zoom")));
submenu.add(editor.bind("400%", new ScaleAction(4)));
submenu.add(editor.bind("200%", new ScaleAction(2)));
submenu.add(editor.bind("150%", new ScaleAction(1.5)));
submenu.add(editor.bind("100%", new ScaleAction(1)));
submenu.add(editor.bind("75%", new ScaleAction(0.75)));
submenu.add(editor.bind("50%", new ScaleAction(0.5)));
submenu.addSeparator();
submenu.add(editor.bind(mxResources.get("custom"), new ScaleAction(0)));
menu.addSeparator();
menu.add(editor.bind(mxResources.get("zoomIn"), mxGraphActions.getZoomInAction()));
menu.add(editor.bind(mxResources.get("zoomOut"), mxGraphActions.getZoomOutAction()));