JDK-4269932 : Create buttons other than JButtons when adding actions to a JToolBar
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1999-09-08
  • Updated: 2000-12-11
  • Resolved: 2000-12-11
Related Reports
Duplicate :  
Description

Name: krT82822			Date: 09/08/99


Could the signatures for the following three functions in the JToolBar class be changed from using JButtons to instead use AbstractButtons to allow someone to overide createActionComponent to create things like JToggleButtons.

Change:
public JButton add(Action a)
protected JButton createActionComponent(Action a)
protected PropertyChangeListener createActionChangeListener(JButton b)

To:
public AbstractButton add(Action a)
protected AbstractButton createActionComponent(Action a)
protected PropertyChangeListener createActionChangeListener(AbstractButton b)
(Review ID: 94974) 
======================================================================

Comments
EVALUATION 11 Dec 2000, kevin.ryan@eng -- this issue is covered in/by # 4133141. Thus, closing this as a dupe.
11-06-2004

PUBLIC COMMENTS this issue is addressed by # 4133141
10-06-2004