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

javax.swing.JScrollPane.ScrollBar constructor doc is incorrect.

XMLWordPrintable

    • kestrel
    • sparc
    • solaris_2.5.1



      Name: aaC67449 Date: 04/06/99



      javax.swing.JScrollPane.ScrollBar constructor doc is incorrect.

      It says:"
      public JScrollPane.ScrollBar(int orientation)

             Create a scrollbar with the specified orientation, where the options are:
                    JScrollPane.VERTICAL_SCROLLBAR
                    JScrollPane.HORIZONTAL_SCROLLBAR
             Parameters:
                    orientation - an int specifying the orientation
      "

      The constructor expects int parameter, but JScrollPane.VERTICAL_SCROLLBAR
      and HORIZONTAL_SCROLLBAR are String

      See javadoc:"

      public static final String VERTICAL_SCROLLBAR

             Identifies a vertical scrollbar.
             
      public static final String HORIZONTAL_SCROLLBAR

             Identifies a horizonal scrollbar.
      "

      The JScrollBar.VERTICAL and the JScrollBar.HORIZONTAL seem to be more suitable

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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: