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

Incorrect reference to JProgressBar.VERTICAL or JProgressBar.HORIZONTAL constants

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 5.0
    • client-libs

    Description

      The spec J2SE 5.0 has incorrect statements in JProgressBar javadoc:
       "public JProgressBar(int orient)
        Creates a progress bar with the specified orientation, which can be either
        JProgressBar.VERTICAL or JProgressBar.HORIZONTAL.

        public void setOrientation(int newOrientation)
        Sets the progress bar's orientation to newOrientation, which must be
        JProgressBar.VERTICAL or JProgressBar.HORIZONTAL. The default orientation is HORIZONTAL."

      There is no such constant fields in JProgressBar class. The spec should be corrected
      to refer to SwingConstants.VERTICAL or SwingConstants.HORIZONTAL.

      There are other places in the spec with references to similar SwingConstants,
      however they exist in various versions, e.g. "VERTICAL, HORIZONTAL" for JSlider,
      "defined in SwingConstants: LEFT, CENTER, RIGHT, LEADING or TRAILING" for JLabel.
      The constants should be referenced in consistent way across the whole spec.

      Attachments

        Issue Links

          Activity

            People

              alexsch Alexandr Scherbatiy
              visaenko Vasily Isaenko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: