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

(-)a/form/src/org/netbeans/modules/form/editors/IconEditor.java (-1 / +1 lines)
Lines 181-187 Link Here
181
                    + "new javax.swing.ImageIcon(\"" + convert(ii.name) + "\")"; // NOI18N
181
                    + "new javax.swing.ImageIcon(\"" + convert(ii.name) + "\")"; // NOI18N
182
                case TYPE_CLASSPATH: return
182
                case TYPE_CLASSPATH: return
183
                    "*/\n\\1NOI18N*/\n\\0" // NOI18N
183
                    "*/\n\\1NOI18N*/\n\\0" // NOI18N
184
                    + "new javax.swing.ImageIcon(getClass().getResource(\"/" + ii.name + "\"))"; // NOI18N
184
                    + "new javax.swing.ImageIcon(" + getSourceFile().getName() + ".class.getResource(\"/" + ii.name + "\"))"; // NOI18N
185
                // */\n\\1 is a special code mark for line comment
185
                // */\n\\1 is a special code mark for line comment
186
                // */\n\\0 is a special code mark to indicate that a real code follows
186
                // */\n\\0 is a special code mark to indicate that a real code follows
187
            }
187
            }

Return to bug 158777