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: | Icon property editor in GUI designer doesn't respect maven resource path | ||
---|---|---|---|
Product: | projects | Reporter: | arittner <arittner> |
Component: | Maven | Assignee: | David Simonek <dsimonek> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | issues, jglick |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://forums.netbeans.org/viewtopic.php?p=76885#76885 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
arittner
2010-06-13 09:43:00 UTC
Works for me in a dev build. Create a project via quickstart archetype. Copy some icon to src/main/resources/res/something.png. Add a JFrame form. Add a JLabel to it. Click the "..." button next to "icon". Click "..." next to "File". The chooser shows under "Classpath" two nodes: "Source Packages" and ".../src/main/resources"; under the latter the icon can be selected. Generated code is jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/res/something.png"))); which looks right to me, and works when run (via either Maven execute, or Compile on Save quick run). I'm having this issue on netbeans 8.0.1, should I re open this issue or create a new one? |