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 21322
Collapse All | Expand All

(-)openide/src/org/openide/WizardDescriptor.java (-1 / +6 lines)
Lines 1056-1061 Link Here
1056
        JLabel numberLabel;
1056
        JLabel numberLabel;
1057
        int selected = -1;
1057
        int selected = -1;
1058
        boolean contentNumbered;
1058
        boolean contentNumbered;
1059
        int taWidth;
1059
        
1060
        
1060
        /**
1061
        /**
1061
         * @param contentNumbered Whether content will be numbered
1062
         * @param contentNumbered Whether content will be numbered
Lines 1072-1078 Link Here
1072
            ta.setFont(UIManager.getFont("Label.font")); // NOI18N
1073
            ta.setFont(UIManager.getFont("Label.font")); // NOI18N
1073
            ta.getAccessibleContext().setAccessibleDescription(""); // NOI18N
1074
            ta.getAccessibleContext().setAccessibleDescription(""); // NOI18N
1074
            
1075
            
1075
            int taWidth = wrappingWidth - 12 - 12;
1076
            taWidth = wrappingWidth - 12 - 12;
1076
            
1077
            
1077
            numberLabel = new JLabel() {
1078
            numberLabel = new JLabel() {
1078
                protected void paintComponent(Graphics g) {
1079
                protected void paintComponent(Graphics g) {
Lines 1122-1127 Link Here
1122
                numberLabel.setText(Integer.toString(index + 1) + "."); // NOI18N
1123
                numberLabel.setText(Integer.toString(index + 1) + "."); // NOI18N
1123
            }
1124
            }
1124
           
1125
           
1126
            // #21322: on JDK1.4 wrapping width is cleared between two rendering runs
1127
            Insets taInsets = ta.getInsets();
1128
            ta.setSize(taWidth, 
1129
                       taInsets.top + taInsets.bottom + 1);
1125
            ta.setText((String)value);
1130
            ta.setText((String)value);
1126
            return this;
1131
            return this;
1127
        }
1132
        }

Return to bug 21322