submenu = (JMenu) menu.add(new JMenu(mxResources.get("display")));
submenu.add(new TogglePropertyItem(graphComponent, mxResources
.get("buffering"), "TripleBuffered", true));
submenu.add(editor.bind(mxResources.get("dirty"),
new ToggleDirtyAction()));
submenu.addSeparator();
item = submenu.add(new TogglePropertyItem(graphComponent, mxResources
.get("centerPage"), "CenterPage", true, new ActionListener()