Examples of ScenarioEditorInfoPaneManager


Examples of civquest.swing.panes.managers.ScenarioEditorInfoPaneManager

       }

      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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.