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

Unclear spec for tree.DefaultTreeCellRenderer

XMLWordPrintable

    • kestrel
    • sparc
    • solaris_2.6



      Name: vsC58871 Date: 08/05/98


      1. Javadoc comment for method getTreeCellRendererComponent()
      says that "the value is set from messaging value with toString()".
      This is not true. The value is obtained from
      JTree method convertValueToText().

      2. Javadoc comment for setBackground(Color color) says that
      this method "only accept the color if it isn't a ColorUIResource".
      Currently, method invokes super.setBackground(null) if color is a
      ColorUIResource. I think this fact should be documented.

      The same situation is with setFont() method.

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

            svioletsunw Scott Violet (Inactive)
            vsizikov Vladimir Sizikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: