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 160351 - AlwaysEnabledAction class should always return an Icon for Action.SMALL_ICON property
Summary: AlwaysEnabledAction class should always return an Icon for Action.SMALL_ICON ...
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-16 14:21 UTC by hboeck
Modified: 2009-03-19 20:34 UTC (History)
0 users

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 hboeck 2009-03-16 14:21:16 UTC
The getValue method of the AlwaysEnabledAction class returns an Image in case of the specified
iconBase is a String or URL instance. But this method should return always an Icon instance (e.g. ImageIcon)
for the Action.SMALL_ICON property. See also the Javadoc of the Java Action interface.
Comment 1 Jaroslav Tulach 2009-03-16 16:55:38 UTC
I think this will be an easy fix.
Comment 2 Jaroslav Tulach 2009-03-17 14:01:36 UTC
core-main#d66c2f65916f
Comment 3 Quality Engineering 2009-03-19 20:34:43 UTC
Integrated into 'main-golden', will be available in build *200903191401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d66c2f65916f
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #160351: Always return Icon for Action.SMALL_ICON key