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
======================================================================