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 104530 - Use Utilities.icon2Image in DropDownButton.updateIcons
Summary: Use Utilities.icon2Image in DropDownButton.updateIcons
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-22 17:33 UTC by Jesse Glick
Modified: 2008-12-22 13:40 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 Jesse Glick 2007-05-22 17:33:34 UTC
So you don't need to hardcode support for ImageIcon.

BTW is it intentional that there is no similar code in DropDownToggleButton?
Comment 1 Vitezslav Stejskal 2007-05-24 06:55:42 UTC
I see, I'll change it and do the same in DDTB. Are there any modules using DDTB
at the moment, so I can test the change?
Comment 2 Vitezslav Stejskal 2007-05-24 07:21:02 UTC
The icons should work the same in both buttons now, using U.i2i. I'll update
DDTB with the popup menu enhancement too.

Checking in IconWithArrow.java;
/cvs/openide/awt/src/org/openide/awt/IconWithArrow.java,v  <--  IconWithArrow.java
new revision: 1.3; previous revision: 1.2
done
Checking in DropDownButton.java;
/cvs/openide/awt/src/org/openide/awt/DropDownButton.java,v  <--  DropDownButton.java
new revision: 1.3; previous revision: 1.2
done
Checking in DropDownToggleButton.java;
/cvs/openide/awt/src/org/openide/awt/DropDownToggleButton.java,v  <-- 
DropDownToggleButton.java
new revision: 1.2; previous revision: 1.1
done
Comment 3 Stanislav Aubrecht 2007-05-24 08:53:01 UTC
> I see, I'll change it and do the same in DDTB. Are there any modules using
DDTB at the moment, so I can test the change?

there isn't, but i'm planing to use it in tasklist's toolbar soon.