}
JPanel infoPaneComponent = new JPanel();
Registry paneRegistry = guiRegistry.getSubRegistry("panes");
ScenarioEditorInfoPaneManager infoPaneManager = new
ScenarioEditorInfoPaneManager(civQuest, infoPaneComponent,
Game.getGame(), map, registry, paneRegistry);
GlobalFunctionComponent globFC = civQuest.getGlobalFunctionComponent();
ScenarioEditorFunctionComponent comp
= new ScenarioEditorFunctionComponent(map, civQuest,
registry, infoPaneManager);
globFC.switchedToEditor(comp);
JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
infoPaneComponent, scrollPane);
Integer prefWidth = infoPaneManager.getPreferredWidth();
if (prefWidth != null) {
splitPane.setDividerLocation(prefWidth);
}
splitPane.setOneTouchExpandable(true);