JDK-4760080 : Add another property for an icon in javax.swing.Action
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2002-10-08
  • Updated: 2002-10-09
  • Resolved: 2002-10-09
Related Reports
Duplicate :  
Description

Name: sv35042			Date: 10/08/2002


FULL PRODUCT VERSION :
all VM (RFE)

FULL OPERATING SYSTEM VERSION :
all OS

A DESCRIPTION OF THE PROBLEM :
Add another property for a second icon to Action. The
problem is that at the moment I can only define one icon.
This icon will be used for JMenuItems and JToolBar buttons.

The JMenuItem looks better with an icon of 16x16 pixels.
The JToolBar button looks better with an icon of 24x24 pixels.

I've to set ont of the icons manually. It would be better to
have both icons in the Action and both (the button and the
menu item) can get the appropriate icon.

EXPECTED VERSUS ACTUAL BEHAVIOR :
Add another property to Action to have two different buttons.

This bug can be reproduced always.

CUSTOMER WORKAROUND :
Set one icon manually.
(Review ID: 143303) 
======================================================================

Comments
EVALUATION I agree. The Action should support both large and small icons and a key should be created called LARGE_ICON for toolbar buttons. Note: the javadoc for SMALL_ICON states that it will be used in toolbar buttons. There is currently an RFE to improve Actionc which is committed to tiger. I'll add these comments and close this rfe as a duplicate. ###@###.### 2002-10-09
09-10-2002