MCPcopy Create free account
hub / github.com/PCGen/pcgen / initComponents

Method initComponents

code/src/java/pcgen/gui2/PCGenFrame.java:175–195  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173 }
174
175 private void initComponents()
176 {
177 setLayout(new BorderLayout());
178
179 JComponent root = getRootPane();
180 root.setActionMap(actionMap);
181 root.setInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, createInputMap(actionMap));
182
183 characterTabs.add(new InfoGuidePane(this, uiContext));
184
185 setJMenuBar(pcGenMenuBar);
186 PCGenToolBar pcGenToolBar = new PCGenToolBar(this);
187 ToolBar toolBar = pcGenToolBar.buildMenu();
188 JFXPanel wrappedToolBar = GuiUtility.wrapParentAsJFXPanel(toolBar);
189
190 add(wrappedToolBar, BorderLayout.NORTH);
191 add(characterTabs, BorderLayout.CENTER);
192 add(statusBar, BorderLayout.SOUTH);
193 updateTitle();
194 setIconImage(Icons.PCGenApp.getImageIcon().getImage());
195 }
196
197 private void initSettings()
198 {

Callers 1

PCGenFrameMethod · 0.95

Calls 6

createInputMapMethod · 0.95
buildMenuMethod · 0.95
wrapParentAsJFXPanelMethod · 0.95
updateTitleMethod · 0.95
getImageIconMethod · 0.80
addMethod · 0.65

Tested by

no test coverage detected