Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4280261

poor doc for javax.swing.AbstractButton

XMLWordPrintable

    • kestrel
    • sparc
    • solaris_2.6



      Name: sdC67446 Date: 10/12/99


      The doc for method
          protected void configurePropertiesFromAction(Action a)
      of class
          javax.swing.AbstractButton
      says nothing about the default class properties if 'a' == null.
      Currently if 'a' == null the method sets:

      1) setText((null)
      2) setIcon((null)
      3) setEnabled(true)
      4) setToolTipText(null)


      The doc says:
      ------------------------------------------------------------
      protected void configurePropertiesFromAction(Action a)

            Factory method which sets the ActionEvent source's properties
            according to values from the Action instance. The properties
            which are set may differ for subclasses. By default, the
            properties which get set are Text, Icon Enabled, and
            ToolTipText.
            Parameters:
                  a - the Action from which to get the properties, or null
            Since:
                  1.3
            See Also:
                  Action, setAction(javax.swing.Action)
      ------------------------------------------------------------
      ======================================================================

      Name: sdC67446 Date: 10/15/99


      The same problem with
      javax.swing.JRadioButton.configurePropertiesFromAction(Action a)

      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: