6659228: GridBagConstraints API typo - 'ComponentOrienation' (missing t)
6210739: Need spec clarification of Scrollbar set/getVisibleAmount()
Reviewed-by: anthony
--- a/jdk/src/share/classes/java/awt/GridBagConstraints.java Sun Oct 17 19:43:33 2010 -0700
+++ b/jdk/src/share/classes/java/awt/GridBagConstraints.java Fri Oct 22 12:46:48 2010 +0400
@@ -126,7 +126,7 @@
/**
* Place the component centered along the edge of its display area
* associated with the start of a page for the current
- * <code>ComponentOrienation</code>. Equal to NORTH for horizontal
+ * {@code ComponentOrientation}. Equal to NORTH for horizontal
* orientations.
*/
public static final int PAGE_START = 19;
@@ -134,7 +134,7 @@
/**
* Place the component centered along the edge of its display area
* associated with the end of a page for the current
- * <code>ComponentOrienation</code>. Equal to SOUTH for horizontal
+ * {@code ComponentOrientation}. Equal to SOUTH for horizontal
* orientations.
*/
public static final int PAGE_END = 20;
@@ -142,7 +142,7 @@
/**
* Place the component centered along the edge of its display area where
* lines of text would normally begin for the current
- * <code>ComponentOrienation</code>. Equal to WEST for horizontal,
+ * {@code ComponentOrientation}. Equal to WEST for horizontal,
* left-to-right orientations and EAST for horizontal, right-to-left
* orientations.
*/
@@ -151,7 +151,7 @@
/**
* Place the component centered along the edge of its display area where
* lines of text would normally end for the current
- * <code>ComponentOrienation</code>. Equal to EAST for horizontal,
+ * {@code ComponentOrientation}. Equal to EAST for horizontal,
* left-to-right orientations and WEST for horizontal, right-to-left
* orientations.
*/
@@ -160,7 +160,7 @@
/**
* Place the component in the corner of its display area where
* the first line of text on a page would normally begin for the current
- * <code>ComponentOrienation</code>. Equal to NORTHWEST for horizontal,
+ * {@code ComponentOrientation}. Equal to NORTHWEST for horizontal,
* left-to-right orientations and NORTHEAST for horizontal, right-to-left
* orientations.
*/
@@ -169,7 +169,7 @@
/**
* Place the component in the corner of its display area where
* the first line of text on a page would normally end for the current
- * <code>ComponentOrienation</code>. Equal to NORTHEAST for horizontal,
+ * {@code ComponentOrientation}. Equal to NORTHEAST for horizontal,
* left-to-right orientations and NORTHWEST for horizontal, right-to-left
* orientations.
*/
@@ -178,7 +178,7 @@
/**
* Place the component in the corner of its display area where
* the last line of text on a page would normally start for the current
- * <code>ComponentOrienation</code>. Equal to SOUTHWEST for horizontal,
+ * {@code ComponentOrientation}. Equal to SOUTHWEST for horizontal,
* left-to-right orientations and SOUTHEAST for horizontal, right-to-left
* orientations.
*/
@@ -187,7 +187,7 @@
/**
* Place the component in the corner of its display area where
* the last line of text on a page would normally end for the current
- * <code>ComponentOrienation</code>. Equal to SOUTHEAST for horizontal,
+ * {@code ComponentOrientation}. Equal to SOUTHEAST for horizontal,
* left-to-right orientations and SOUTHWEST for horizontal, right-to-left
* orientations.
*/
@@ -437,7 +437,7 @@
* <code>LINE_START</code>, <code>LINE_END</code>,
* <code>FIRST_LINE_START</code>, <code>FIRST_LINE_END</code>,
* <code>LAST_LINE_START</code> and <code>LAST_LINE_END</code>. The
- * baseline relvative values are:
+ * baseline relative values are:
* <code>BASELINE</code>, <code>BASELINE_LEADING</code>,
* <code>BASELINE_TRAILING</code>,
* <code>ABOVE_BASELINE</code>, <code>ABOVE_BASELINE_LEADING</code>,
--- a/jdk/src/share/classes/java/awt/Scrollbar.java Sun Oct 17 19:43:33 2010 -0700
+++ b/jdk/src/share/classes/java/awt/Scrollbar.java Fri Oct 22 12:46:48 2010 +0400
@@ -213,7 +213,8 @@
* The size of the <code>Scrollbar</code>'s bubble.
* When a scroll bar is used to select a range of values,
* the visibleAmount represents the size of this range.
- * This is visually indicated by the size of the bubble.
+ * Depending on platform, this may be visually indicated
+ * by the size of the bubble.
*
* @serial
* @see #getVisibleAmount
@@ -637,6 +638,8 @@
* bubble (also called a thumb or scroll box), usually gives a
* visual representation of the relationship of the visible
* amount to the range of the scroll bar.
+ * Note that depending on platform, the value of the visible amount property
+ * may not be visually indicated by the size of the bubble.
* <p>
* The scroll bar's bubble may not be displayed when it is not
* moveable (e.g. when it takes up the entire length of the
@@ -670,6 +673,8 @@
* bubble (also called a thumb or scroll box), usually gives a
* visual representation of the relationship of the visible
* amount to the range of the scroll bar.
+ * Note that depending on platform, the value of the visible amount property
+ * may not be visually indicated by the size of the bubble.
* <p>
* The scroll bar's bubble may not be displayed when it is not
* moveable (e.g. when it takes up the entire length of the