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

javax.swing.table.DefaultTableCellRenderer.setValue() doc ambiguity

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • docs
    • beta
    • generic
    • generic



      Name: krT82822 Date: 03/19/2000


      (see also 4277052)
      java version "1.2.2" (and kestrel-rc2)
      HotSpot VM (1.0.1, mixed mode, build g)

      The doc comments for
      javax.swing.table.DefaultTableCellRenderer.setValue(Object)
      are somewhat lacking in clarity.

      See
      http://java.sun.com/products/jdk/1.2/docs/api/javax/swing/table/DefaultTableCellRenderer.html#setValue(java.lang.Object)

      ----------------

      16 Mar 2000, eval1127@eng -- the method's argument is an Object, but the description
      suggests that the only acceptable argument is a String.

      Thus, beginning the summary with "Sets the _string_" is confusing. It might be helpful
      to say "String object" or such?


      from the kestrel docs,
          http://java.sun.com/products/jdk/1.3/docs/api/javax/swing/table/DefaultTableCellRenderer.html :


      setValue

      protected void setValue(Object value)

            Sets the string for the cell being rendered to value.

            Parameters:
                  value - the string value for this cell; if value is null it sets the text value to an empty string
            See Also:
                  JLabel.setText(java.lang.String)

      -----------------
      (Review ID: 102528)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: