src/java.desktop/share/classes/java/awt/font/StyledParagraph.java
Print this page
@@ -45,11 +45,11 @@
/**
* This class stores Font, GraphicAttribute, and Decoration intervals
* on a paragraph of styled text.
* <p>
* Currently, this class is optimized for a small number of intervals
- * (preferrably 1).
+ * (preferably 1).
*/
final class StyledParagraph {
// the length of the paragraph
private int length;
@@ -260,11 +260,11 @@
return oldParagraph;
}
/**
* Return the index at which there is a different Font, GraphicAttribute, or
- * Dcoration than at the given index.
+ * Decoration than at the given index.
* @param index a valid index in the paragraph
* @return the first index where there is a change in attributes from
* those at index
*/
public int getRunLimit(int index) {