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.

Bug 205567

Summary: Improve Maven support for icon lookups
Product: guibuilder Reporter: tim_sa <tim_sa>
Component: CodeAssignee: issues@guibuilder <issues>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 7.1   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description tim_sa 2011-11-25 17:42:40 UTC
[ BUILD # : 201111171527 ]
[ JDK VERSION : 1.7 ]

Create a window form and place a JLabel on it.

When  you select the Icon property of the JLabel you are presented with the
'Icon chooser dialog'

In an Ant based project you can select the package that the icon is in and
subsequently the icon itself from the next droplist.

This does not work in a Maven project. You always have to select the External
Image option.
In Maven based project the icons will most probably not be with the source code
in the src/main/java/ folder they will more than likely be in a subset of the
src/main/resources/ folder

see
http://maven.apache.org/guides/introduction/introduction-to-the-standard-directo
ry-layout.html for more details.
Comment 1 tim_sa 2011-11-25 17:47:27 UTC
above URL shortened
http://goo.gl/O0yDX
Comment 2 Tomas Pavek 2015-09-16 17:03:28 UTC
Fixed as bug 170991.

*** This bug has been marked as a duplicate of bug 170991 ***