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.
Summary: | Use Clazz.class instead of getClass() when retrieving resources | ||
---|---|---|---|
Product: | guibuilder | Reporter: | nickdegraeve <nickdegraeve> |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | RESOLVED DUPLICATE | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: |
Description
nickdegraeve
2007-11-21 11:17:26 UTC
could you be more precise ? which module generates this code or where we can find it ? thanks in advance Without requested information for long time - INVALID. We can't do anything in this case, so please reporter add requested information and reopen issue. Thanks in advance. My apologies for not reacting sooner. I don't know the exact name of the module but the code is generated when you try to set an icon for a Swing component using the "Properties" window of the "Design" view. Example of the code generated when an icon is set for a JButton: jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/javaapplication3/myIcon.gif"))); Reassigning to form for further evaluation. *** This bug has been marked as a duplicate of bug 158777 *** |