aboutsummaryrefslogtreecommitdiff
path: root/src/share/classes/javax/swing/text
diff options
context:
space:
mode:
authorcl <none@none>2013-10-02 11:28:07 -0700
committercl <none@none>2013-10-02 11:28:07 -0700
commitfad273ab23dc60a24271c81c7f29c56d4dc88430 (patch)
tree95c2e5f1f7dfc911b8fd53fabd65df3818e1a44c /src/share/classes/javax/swing/text
parentb6180d2dd27b783bfb11b158165e533107f170e9 (diff)
8025409: Fix javadoc comments errors and warning reported by doclint report
Reviewed-by: anthony, yan
Diffstat (limited to 'src/share/classes/javax/swing/text')
-rw-r--r--src/share/classes/javax/swing/text/Document.java10
-rw-r--r--src/share/classes/javax/swing/text/MaskFormatter.java2
-rw-r--r--src/share/classes/javax/swing/text/View.java4
-rw-r--r--src/share/classes/javax/swing/text/html/HTMLDocument.java14
4 files changed, 15 insertions, 15 deletions
diff --git a/src/share/classes/javax/swing/text/Document.java b/src/share/classes/javax/swing/text/Document.java
index 0e89c3d02..5ce9b4c93 100644
--- a/src/share/classes/javax/swing/text/Document.java
+++ b/src/share/classes/javax/swing/text/Document.java
@@ -46,7 +46,7 @@ import javax.swing.event.*;
* used are the location between two characters. As the diagram
* below shows, a location in a text document can be referred to
* as a position, or an offset. This position is zero-based.
- * <p align=center><img src="doc-files/Document-coord.gif"
+ * <p style="text-align:center"><img src="doc-files/Document-coord.gif"
* alt="The following text describes this graphic.">
* <p>
* In the example, if the content of a document is the
@@ -69,7 +69,7 @@ import javax.swing.event.*;
* Exactly what structure is modeled is up to a particular Document
* implementation. It might be as simple as no structure (i.e. a
* simple text field), or it might be something like diagram below.
- * <p align=center><img src="doc-files/Document-structure.gif"
+ * <p style="text-align:center"><img src="doc-files/Document-structure.gif"
* alt="Diagram shows Book->Chapter->Paragraph">
* <p>
* The unit of structure (i.e. a node of the tree) is referred to
@@ -122,7 +122,7 @@ import javax.swing.event.*;
* generated since that edit is actually the source of the change
* rather than a mutation to the <code>Document</code> made through its
* api.
- * <p align=center><img src="doc-files/Document-notification.gif"
+ * <p style="text-align:center"><img src="doc-files/Document-notification.gif"
* alt="The preceeding text describes this graphic.">
* <p>
* Referring to the above diagram, suppose that the component shown
@@ -267,7 +267,7 @@ public interface Document {
* For a removal, the end of the removal range is collapsed
* down to the start of the range, and any marks in the removal
* range are collapsed down to the start of the range.
- * <p align=center><img src="doc-files/Document-remove.gif"
+ * <p style="text-align:center"><img src="doc-files/Document-remove.gif"
* alt="Diagram shows removal of 'quick' from 'The quick brown fox.'">
* <p>
* If the Document structure changed as result of the removal,
@@ -300,7 +300,7 @@ public interface Document {
* insertUpdate method on the DocumentListener.
* The offset and length of the generated DocumentEvent
* will indicate what change was actually made to the Document.
- * <p align=center><img src="doc-files/Document-insert.gif"
+ * <p style="text-align:center"><img src="doc-files/Document-insert.gif"
* alt="Diagram shows insertion of 'quick' in 'The quick brown fox'">
* <p>
* If the Document structure changed as result of the insertion,
diff --git a/src/share/classes/javax/swing/text/MaskFormatter.java b/src/share/classes/javax/swing/text/MaskFormatter.java
index a477e610b..f54a1768a 100644
--- a/src/share/classes/javax/swing/text/MaskFormatter.java
+++ b/src/share/classes/javax/swing/text/MaskFormatter.java
@@ -40,7 +40,7 @@ import javax.swing.*;
* <table border=1 summary="Valid characters and their descriptions">
* <tr>
* <th>Character&nbsp;</th>
- * <th><p align="left">Description</p></th>
+ * <th><p style="text-align:left">Description</p></th>
* </tr>
* <tr>
* <td>#</td>
diff --git a/src/share/classes/javax/swing/text/View.java b/src/share/classes/javax/swing/text/View.java
index 8223cc8ed..1bd352070 100644
--- a/src/share/classes/javax/swing/text/View.java
+++ b/src/share/classes/javax/swing/text/View.java
@@ -68,7 +68,7 @@ A view has the following responsibilities:
implementation, the minimum span will be &lt;= the preferred span which in turn
will be &lt;= the maximum span.
</p>
- <p align=center><img src="doc-files/View-flexibility.jpg"
+ <p style="text-align:center"><img src="doc-files/View-flexibility.jpg"
alt="The above text describes this graphic.">
<p>The minimum set of methods for layout are:
<ul>
@@ -95,7 +95,7 @@ A view has the following responsibilities:
This allows parent View implementations to cache the child requirements if
desired. The calling sequence looks something like the following:
</p>
- <p align=center>
+ <p style="text-align:center">
<img src="doc-files/View-layout.jpg"
alt="Sample calling sequence between parent view and child view:
setSize, getMinimum, getPreferred, getMaximum, getAlignment, setSize">
diff --git a/src/share/classes/javax/swing/text/html/HTMLDocument.java b/src/share/classes/javax/swing/text/html/HTMLDocument.java
index 71f260932..7f11b2999 100644
--- a/src/share/classes/javax/swing/text/html/HTMLDocument.java
+++ b/src/share/classes/javax/swing/text/html/HTMLDocument.java
@@ -195,14 +195,14 @@ import static sun.swing.SwingUtilities2.IMPLIED_CR;
* <th><code>setOuterHTML</code></th>
* </tr>
* <tr valign="top">
- * <td nowrap="nowrap">
+ * <td style="white-space:nowrap">
* <div style="background-color: silver;">
* <p>Paragraph 1</p>
* <p>Paragraph 2</p>
* </div>
* </td>
* <!--insertAfterStart-->
- * <td nowrap="nowrap">
+ * <td style="white-space:nowrap">
* <div style="background-color: silver;">
* <ul style="color: red;">
* <li>List Item</li>
@@ -212,7 +212,7 @@ import static sun.swing.SwingUtilities2.IMPLIED_CR;
* </div>
* </td>
* <!--insertBeforeEnd-->
- * <td nowrap="nowrap">
+ * <td style="white-space:nowrap">
* <div style="background-color: silver;">
* <p>Paragraph 1</p>
* <p>Paragraph 2</p>
@@ -222,7 +222,7 @@ import static sun.swing.SwingUtilities2.IMPLIED_CR;
* </div>
* </td>
* <!--insertBeforeStart-->
- * <td nowrap="nowrap">
+ * <td style="white-space:nowrap">
* <ul style="color: red;">
* <li>List Item</li>
* </ul>
@@ -232,7 +232,7 @@ import static sun.swing.SwingUtilities2.IMPLIED_CR;
* </div>
* </td>
* <!--insertAfterEnd-->
- * <td nowrap="nowrap">
+ * <td style="white-space:nowrap">
* <div style="background-color: silver;">
* <p>Paragraph 1</p>
* <p>Paragraph 2</p>
@@ -242,7 +242,7 @@ import static sun.swing.SwingUtilities2.IMPLIED_CR;
* </ul>
* </td>
* <!--setInnerHTML-->
- * <td nowrap="nowrap">
+ * <td style="white-space:nowrap">
* <div style="background-color: silver;">
* <ul style="color: red;">
* <li>List Item</li>
@@ -250,7 +250,7 @@ import static sun.swing.SwingUtilities2.IMPLIED_CR;
* </div>
* </td>
* <!--setOuterHTML-->
- * <td nowrap="nowrap">
+ * <td style="white-space:nowrap">
* <ul style="color: red;">
* <li>List Item</li>
* </ul>