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 213571 - Non-LAF-specific icon for New > Folder
Summary: Non-LAF-specific icon for New > Folder
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2012-06-05 02:00 UTC by jrb4257
Modified: 2012-06-05 19:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jrb4257 2012-06-05 02:00:22 UTC
The icon for the "New > Folder" context menu item is not loading, causing a default to be loaded that does not match the system LAF.

Product Version = NetBeans IDE 7.2 Beta (Build 201205031832)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.6.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 20.0-b11
Comment 1 Martin Entlicher 2012-06-05 12:26:40 UTC
The problem is in org.netbeans.modules.project.ui.NewFileIterator.folderIterator(), where iconBase="org/openide/loaders/defaultFolder.gif" is declared.
Comment 2 Jesse Glick 2012-06-05 18:27:33 UTC
The icon _is_ loaded; it is defaultFolder.gif. Making this icon be L&F-sensitive is not practical using current APIs; would require some kind of UIManager-based URL protocol. Not worth the trouble.
Comment 3 Jesse Glick 2012-06-05 19:31:13 UTC
Reporter writes (next time use Bugzilla please):
> The other icons match the LAF

No, all other template icons are hardcoded as well.

> ...why doesn't the GIF?

As in comment #2, it is impractical to make this icon change dynamically according to the selected L&F.

> Also, it's possible that the GIF is just a temporary placeholder image
> for the final version, which is why it looks shoddy.

No, this is the generic folder icon in the NB sources. Actual folder nodes (e.g. in the Files tab) attempt to load a "folder" icon from UIManager.