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

Doc for javax.swing.SpinnerNumberModel.setStepSize() is incorrect

XMLWordPrintable

    • beta
    • sparc
    • solaris_2.6



      Name: ooR10001 Date: 12/19/2000


      Specification for javax.swing.SpinnerNumberModel.setStepSize(Number) is incorrect because
      it says:
      ------------------------------------------------------------
      setStepSize

      public void setStepSize(Number stepSize)

            Change the size of the value change computed by the getNextValue and
            getPreviousValue methods.
            An IllegalArgumenException is thrown if stepSize is null.

            This method fires a ChangeEvent if the minimum has changed. *
                                                   ^^^^^^^^^^^^^^^^^^^^^^
            Parameters:
                  stepSize - the size of the value change computed by the getNextValue
                  and getPreviousValue methods
      ------------------------------------------------------------
      In fact, this method affects only stepSize and does not change minimum.
      Also, there is no means for asterisk at the end of line.
      It needs to be fixed.

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: