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 120978 - Guarantee default values for Nb.Explorer.Folder*
Summary: Guarantee default values for Nb.Explorer.Folder*
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-02 15:27 UTC by Andrei Badea
Modified: 2010-08-11 13:31 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Badea 2007-11-02 15:27:21 UTC
Currently modules using Nb.Explorer.Folder* need to check for null, perhaps also try Tree.icon, and if that is null too
then bundle a default icon image. See e.g. UIUtil in apisupport/project for an example.

This is quite clumsy and has performance impact. Suggest ensuring that Nb.Explorer.Folder* have non-null values on all
L&F's. This might be the case even today, but it needs to be stated clearly in the documentation.

I can help with the implementation and/or write a test for it.
Comment 1 Andrei Badea 2007-11-02 17:39:08 UTC
BTW it doesn't seem to be the case for the Ocean L&F.