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

JSplitPane API documentation incorrectly talks about "percentages"

XMLWordPrintable



      Name: jk109818 Date: 05/27/2003


      FULL PRODUCT VERSION :
      1.4.1_02-b06

      A DESCRIPTION OF THE PROBLEM :
      This is a trivial thing, but it caught me out.

      The API docs for Swing's JSplitPane.setDividerLocation(double) keeps calling its argument a "percentage". But then in the details, it says it's a fraction from 0.0 - 1.0. Well, it can't be both!

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      You can see it here:

      http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JSplitPane.html#setDividerLocation(double)



      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      It'll say:

      "Sets the divider location as a percentage of the JSplitPane's size."

      which ain't true.

      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 186422)
      ======================================================================

            stayer Kirill Kirichenko (Inactive)
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: