}
JComponent infoPaneComponent = new JPanel();
Registry paneRegistry = guiRegistry.getSubRegistry("panes");
AbstractInfoPaneManager infoPaneManager = new EquiInfoPaneManager(infoPaneComponent,
map,
paneRegistry);
GameStatusComponent gameStatusComp = new GameStatusComponent(session);
GlobalFunctionComponent globFC = civQuest.getGlobalFunctionComponent();
globFC.switchedToGame(new GameFunctionComponent(infoPaneManager,
map, gameStatusComp, guiRegistry,
civQuest));
JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,
infoPaneComponent, scrollPane);
Integer prefWidth = infoPaneManager.getPreferredWidth();
if (prefWidth != null) {
splitPane.setDividerLocation(prefWidth);
}
splitPane.setOneTouchExpandable(true);