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

typo in the getTreeCellRendererComponent method details

XMLWordPrintable

    • b32
    • x86
    • linux

      A DESCRIPTION OF THE PROBLEM :
        Description of getTreeCellRendererComponent(...):

      based "on on" is duplicated in the last sentence.

      Configures the renderer based on the passed in components. The value is set from messaging the tree with convertValueToText, which ultimately invokes toString on value. The foreground color is set based on the selection and the icon is set based on on leaf and expanded.



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Configures the renderer based on the passed in components. The value is set from messaging the tree with convertValueToText, which ultimately invokes toString on value. The foreground color is set based on the selection and the icon is set based on leaf and expanded.
      ACTUAL -
      Configures the renderer based on the passed in components. The value is set from messaging the tree with convertValueToText, which ultimately invokes toString on value. The foreground color is set based on the selection and the icon is set based on on leaf and expanded.

      URL OF FAULTY DOCUMENTATION :

      http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/tree/DefaultTreeCellRenderer.html#getTreeCellRendererComponent(javax.swing.JTree,%20java.lang.Object,%20boolean,%20boolean,%20boolean,%20int,%20boolean)
      ###@###.### 2005-04-01 06:57:19 GMT

            shickeysunw Shannon Hickey (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: