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

Method initialize

code/src/java/pcgen/gui2/coreview/CoreViewFrame.java:79–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }
78
79 public void initialize()
80 {
81 GridBagLayout gridbag = new GridBagLayout();
82 GridBagConstraints c = new GridBagConstraints();
83 getContentPane().setLayout(gridbag);
84 c.fill = GridBagConstraints.HORIZONTAL;
85 c.anchor = GridBagConstraints.NORTHWEST;
86 c.insets = new Insets(2, 2, 2, 2);
87
88 int col = 0;
89 Utility.buildConstraints(c, col, 0, 1, 1, 100, 20);
90 JLabel label = new JLabel(LanguageBundle.getFormattedString("in_CoreView_Perspective")); //$NON-NLS-1$
91 gridbag.setConstraints(label, c);
92 getContentPane().add(label);
93
94 Utility.buildConstraints(c, col++, 1, 1, 1, 0, 20);
95 gridbag.setConstraints(perspectiveChooser, c);
96 getContentPane().add(perspectiveChooser);
97
98 Utility.buildConstraints(c, 0, 2, col, 1, 0, 1000);
99 viewTable.setAutoCreateRowSorter(true);
100 JScrollPane pane = new JScrollPane(viewTable);
101 pane.setPreferredSize(new Dimension(500, 300));
102 gridbag.setConstraints(pane, c);
103 getContentPane().add(pane);
104
105 setTitle("Core Debug View");
106 getContentPane().setSize(500, 400);
107 pack();
108 this.setLocationRelativeTo(null);
109 }
110
111 private final class PerspectiveActionListener implements ActionListener
112 {

Callers 1

CoreViewFrameMethod · 0.95

Calls 6

buildConstraintsMethod · 0.95
getFormattedStringMethod · 0.95
addMethod · 0.65
setTitleMethod · 0.65
setSizeMethod · 0.65

Tested by

no test coverage detected