}
setVisualiserKeyBindings();setStateChumKeyBindings(this, propName, keyToActionMap);
updatePopupMenu(popupMenu,keyToActionMap);
//getContentPane().removeAll();
WindowPosition framePosition = globalConfig.loadFrame(propName);
viewer = new VisualizationViewer(new DefaultVisualizationModel(new XMLPersistingLayout(
propName >= 0 ? new FRLayout(g) : new KKLayout(g))), constructRenderer(g,options));
viewer.setBackground(Color.WHITE);
final DefaultModalGraphMouse graphMouse = new XMLModalGraphMouse();
graphMouse.setMode(ModalGraphMouse.Mode.PICKING);
graphMouse.add(new PickingGraphMousePlugin());
viewer.setGraphMouse(graphMouse);
viewer.setPickSupport(new ShapePickSupport());
viewer.addMouseListener(this);
final GraphZoomScrollPane panel = new GraphZoomScrollPane(viewer);
getContentPane().add(panel);
pack();
viewer.setPreferredSize(getSize());
//viewer.getModel().getGraphLayout().initialize(getSize());
restoreLayout(true, currentGraph);
setBounds(framePosition.getRect());
framesVisible.add(this);// register as an active frame.
setVisible(true);
}