Create buttons other than JButtons when adding actions to a JToolBar

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.2.2
    • Component/s: client-libs



      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)
      ======================================================================

            Assignee:
            Georges Saab
            Reporter:
            Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: