This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 186204
Collapse All | Expand All

(-)refactoring.java/src/org/netbeans/modules/refactoring/java/ui/WhereUsedPanel.form (-3 / +7 lines)
Lines 1-4 Link Here
1
<?xml version="1.0" encoding="UTF-8" ?>
1
<?xml version="1.1" encoding="UTF-8" ?>
2
2
3
<Form version="1.4" maxVersion="1.4" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
3
<Form version="1.4" maxVersion="1.4" type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
4
  <NonVisualComponents>
4
  <NonVisualComponents>
Lines 8-13 Link Here
8
  <AuxValues>
8
  <AuxValues>
9
    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
9
    <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/>
10
    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
10
    <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
11
    <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
11
    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
12
    <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
12
    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
13
    <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/>
13
    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
14
    <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
Lines 267-273 Link Here
267
                  <EmptySpace max="-2" attributes="0"/>
268
                  <EmptySpace max="-2" attributes="0"/>
268
                  <Component id="scopeLabel" min="-2" max="-2" attributes="0"/>
269
                  <Component id="scopeLabel" min="-2" max="-2" attributes="0"/>
269
                  <EmptySpace max="-2" attributes="0"/>
270
                  <EmptySpace max="-2" attributes="0"/>
270
                  <Component id="scope" pref="281" max="32767" attributes="0"/>
271
                  <Component id="scope" max="32767" attributes="0"/>
271
                  <EmptySpace max="-2" attributes="0"/>
272
                  <EmptySpace max="-2" attributes="0"/>
272
              </Group>
273
              </Group>
273
          </Group>
274
          </Group>
Lines 275-281 Link Here
275
        <DimensionLayout dim="1">
276
        <DimensionLayout dim="1">
276
          <Group type="103" groupAlignment="3" attributes="0">
277
          <Group type="103" groupAlignment="3" attributes="0">
277
              <Component id="scopeLabel" alignment="3" min="-2" max="-2" attributes="1"/>
278
              <Component id="scopeLabel" alignment="3" min="-2" max="-2" attributes="1"/>
278
              <Component id="scope" alignment="3" pref="20" max="32767" attributes="1"/>
279
              <Component id="scope" alignment="3" max="32767" attributes="1"/>
279
          </Group>
280
          </Group>
280
        </DimensionLayout>
281
        </DimensionLayout>
281
      </Layout>
282
      </Layout>
Lines 300-305 Link Here
300
          <Events>
301
          <Events>
301
            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="scopeActionPerformed"/>
302
            <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="scopeActionPerformed"/>
302
          </Events>
303
          </Events>
304
          <AuxValues>
305
            <AuxValue name="JavaCodeGenerator_InitCodePost" type="java.lang.String" value="((javax.swing.JTextField) scope.getEditor().getEditorComponent()).setColumns(SCOPE_COMBOBOX_COLUMNS);"/>
306
          </AuxValues>
303
        </Component>
307
        </Component>
304
      </SubComponents>
308
      </SubComponents>
305
    </Container>
309
    </Container>
(-)refactoring.java/src/org/netbeans/modules/refactoring/java/ui/WhereUsedPanel.java (-2 / +4 lines)
Lines 90-95 Link Here
90
    private  TreePathHandle newElement;
90
    private  TreePathHandle newElement;
91
    private final transient ChangeListener parent;
91
    private final transient ChangeListener parent;
92
    private static final int MAX_NAME = 50;
92
    private static final int MAX_NAME = 50;
93
    private static final int SCOPE_COMBOBOX_COLUMNS = 14;
93
    
94
    
94
    /** Creates new form WhereUsedPanel */
95
    /** Creates new form WhereUsedPanel */
95
    public WhereUsedPanel(String name, TreePathHandle e, ChangeListener parent) {
96
    public WhereUsedPanel(String name, TreePathHandle e, ChangeListener parent) {
Lines 439-444 Link Here
439
        scopeLabel.setLabelFor(scope);
440
        scopeLabel.setLabelFor(scope);
440
        org.openide.awt.Mnemonics.setLocalizedText(scopeLabel, org.openide.util.NbBundle.getMessage(WhereUsedPanel.class, "LBL_Scope")); // NOI18N
441
        org.openide.awt.Mnemonics.setLocalizedText(scopeLabel, org.openide.util.NbBundle.getMessage(WhereUsedPanel.class, "LBL_Scope")); // NOI18N
441
442
443
        ((javax.swing.JTextField) scope.getEditor().getEditorComponent()).setColumns(SCOPE_COMBOBOX_COLUMNS);
442
        scope.addActionListener(new java.awt.event.ActionListener() {
444
        scope.addActionListener(new java.awt.event.ActionListener() {
443
            public void actionPerformed(java.awt.event.ActionEvent evt) {
445
            public void actionPerformed(java.awt.event.ActionEvent evt) {
444
                scopeActionPerformed(evt);
446
                scopeActionPerformed(evt);
Lines 453-465 Link Here
453
                .addContainerGap()
455
                .addContainerGap()
454
                .addComponent(scopeLabel)
456
                .addComponent(scopeLabel)
455
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
457
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
456
                .addComponent(scope, 0, 266, Short.MAX_VALUE)
458
                .addComponent(scope, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
457
                .addContainerGap())
459
                .addContainerGap())
458
        );
460
        );
459
        scopePanelLayout.setVerticalGroup(
461
        scopePanelLayout.setVerticalGroup(
460
            scopePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
462
            scopePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
461
            .addComponent(scopeLabel)
463
            .addComponent(scopeLabel)
462
            .addComponent(scope, javax.swing.GroupLayout.PREFERRED_SIZE, 20, Short.MAX_VALUE)
464
            .addComponent(scope)
463
        );
465
        );
464
466
465
        scope.getAccessibleContext().setAccessibleDescription("N/A");
467
        scope.getAccessibleContext().setAccessibleDescription("N/A");

Return to bug 186204