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.
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
The problem is in org.netbeans.modules.project.ui.NewFileIterator.folderIterator(), where iconBase="org/openide/loaders/defaultFolder.gif" is declared.
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.
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.