提交 374b0360 编写于 作者: C cl

8025409: Fix javadoc comments errors and warning reported by doclint report

Reviewed-by: anthony, yan
上级 32d0db96
......@@ -96,7 +96,7 @@ import java.util.Hashtable;
* alt="Diagram of an applet demonstrating BorderLayout.
* Each section of the BorderLayout contains a Button corresponding to its position in the layout, one of:
* North, West, Center, East, or South."
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* The code for this applet is as follows:
* <p>
......
......@@ -40,7 +40,7 @@ import javax.accessibility.*;
* under the Solaris operating system:
* <p>
* <img src="doc-files/Button-1.gif" alt="The following context describes the graphic"
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* The first view shows the button as it appears normally.
* The second view shows the button
......
......@@ -53,7 +53,7 @@ import javax.accessibility.*;
* created by this code example:
* <p>
* <img src="doc-files/Checkbox-1.gif" alt="The following context describes the graphic."
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* The button labeled <code>one</code> is in the "on" state, and the
* other two are in the "off" state. In this example, which uses the
......
......@@ -48,7 +48,7 @@ package java.awt;
* <p>
* <img src="doc-files/CheckboxGroup-1.gif"
* alt="Shows three checkboxes, arranged vertically, labeled one, two, and three. Checkbox one is in the on state."
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* @author Sami Shaio
* @see java.awt.Checkbox
......
......@@ -44,7 +44,7 @@ import sun.awt.AWTAccessor;
* <p>
* <img src="doc-files/MenuBar-1.gif"
* alt="Menu labeled Examples, containing items Basic, Simple, Check, and More Examples. The Check item is a CheckBoxMenuItem instance, in the off state."
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* The item labeled <code>Check</code> shows a check box menu item
* in its "off" state.
......
......@@ -52,7 +52,7 @@ import javax.accessibility.*;
* it appears as follows in its normal state:
* <p>
* <img src="doc-files/Choice-1.gif" alt="The following text describes the graphic"
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* In the picture, <code>"Green"</code> is the current choice.
* Pushing the mouse button down on the object causes a menu to
......
......@@ -823,7 +823,7 @@ public class Color implements Paint, java.io.Serializable {
* <p>
* The integer that is returned by <code>HSBtoRGB</code> encodes the
* value of a color in bits 0-23 of an integer value that is the same
* format used by the method {@link #getRGB() <code>getRGB</code>}.
* format used by the method {@link #getRGB() getRGB}.
* This integer can be supplied as an argument to the
* <code>Color</code> constructor that takes a single integer argument.
* @param hue the hue component of the color
......
......@@ -652,7 +652,7 @@ public class EventQueue {
* Dispatches an event. The manner in which the event is
* dispatched depends upon the type of the event and the
* type of the event's source object:
* <p> </p>
* <p>
* <table border=1 summary="Event types, source types, and dispatch methods">
* <tr>
* <th>Event Type</th>
......@@ -680,7 +680,7 @@ public class EventQueue {
* <td>No action (ignored)</td>
* </tr>
* </table>
* <p> </p>
* <p>
* @param event an instance of <code>java.awt.AWTEvent</code>,
* or a subclass of it
* @throws NullPointerException if <code>event</code> is <code>null</code>
......
......@@ -54,7 +54,7 @@ import java.io.IOException;
* <p>
* <img src="doc-files/FlowLayout-1.gif"
* ALT="Graphic of Layout for Three Buttons"
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* Here is the code for this applet:
* <p>
......
......@@ -51,8 +51,8 @@ import java.text.CharacterIterator;
* <li>{@link #charsWidth(char[], int, int)}
* </ul>
* <p>
* <img src="doc-files/FontMetrics-1.gif" alt="The letter 'p' showing its 'reference point'" border=15 align
* ALIGN=right HSPACE=10 VSPACE=7>
* <img src="doc-files/FontMetrics-1.gif" alt="The letter 'p' showing its 'reference point'"
* style="border:15px; float:right; margin: 7px 10px;">
* Note that the implementations of these methods are
* inefficient, so they are usually overridden with more efficient
* toolkit-specific implementations.
......
......@@ -83,7 +83,7 @@ import javax.accessibility.*;
* <img src="doc-files/MultiScreen.gif"
* alt="Diagram of virtual device encompassing three physical screens and one primary physical screen. The primary physical screen
* shows (0,0) coords while a different physical screen shows (-80,-100) coords."
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* In such an environment, when calling <code>setLocation</code>,
* you must pass a virtual coordinate to this method. Similarly,
......
......@@ -125,9 +125,9 @@ import java.util.Arrays;
* <center><table BORDER=0 WIDTH=800
* SUMMARY="absolute, relative and baseline values as described above">
* <tr>
* <th><P ALIGN="LEFT">Absolute Values</th>
* <th><P ALIGN="LEFT">Orientation Relative Values</th>
* <th><P ALIGN="LEFT">Baseline Relative Values</th>
* <th><P STYLE="TEXT-ALIGN:LEFT">Absolute Values</th>
* <th><P STYLE="TEXT-ALIGN:LEFT">Orientation Relative Values</th>
* <th><P STYLE="TEXT-ALIGN:LEFT">Baseline Relative Values</th>
* </tr>
* <tr>
* <td>
......@@ -201,7 +201,7 @@ import java.util.Arrays;
* <tr ALIGN=CENTER>
* <td>
* <img src="doc-files/GridBagLayout-baseline.png"
* alt="The following text describes this graphic (Figure 1)." ALIGN=center>
* alt="The following text describes this graphic (Figure 1)." style="float:center">
* </td>
* </table></center>
* This layout consists of three components:
......@@ -255,10 +255,10 @@ import java.util.Arrays;
* <center><table WIDTH=600 summary="layout">
* <tr ALIGN=CENTER>
* <td>
* <img src="doc-files/GridBagLayout-1.gif" alt="The preceeding text describes this graphic (Figure 1)." ALIGN=center HSPACE=10 VSPACE=7>
* <img src="doc-files/GridBagLayout-1.gif" alt="The preceeding text describes this graphic (Figure 1)." style="float:center; margin: 7px 10px;">
* </td>
* <td>
* <img src="doc-files/GridBagLayout-2.gif" alt="The preceeding text describes this graphic (Figure 2)." ALIGN=center HSPACE=10 VSPACE=7>
* <img src="doc-files/GridBagLayout-2.gif" alt="The preceeding text describes this graphic (Figure 2)." style="float:center; margin: 7px 10px;">
* </td>
* <tr ALIGN=CENTER>
* <td>Figure 2: Horizontal, Left-to-Right</td>
......
......@@ -55,7 +55,7 @@ package java.awt;
* If the container's <code>ComponentOrientation</code> property is horizontal
* and right-to-left, the example produces the output shown in Figure 2.
* <p>
* <center><table WIDTH=600 summary="layout">
* <table style="float:center" WIDTH=600 summary="layout">
* <tr ALIGN=CENTER>
* <td><img SRC="doc-files/GridLayout-1.gif"
* alt="Shows 6 buttons in rows of 2. Row 1 shows buttons 1 then 2.
......@@ -73,7 +73,7 @@ package java.awt;
*
* <td>Figure 2: Horizontal, Right-to-Left</td>
* </tr>
* </table></center>
* </table>
* <p>
* When both the number of rows and the number of columns have
* been set to non-zero values, either by a constructor or
......
......@@ -46,7 +46,7 @@ import javax.accessibility.*;
* produces the following labels:
* <p>
* <img src="doc-files/Label-1.gif" alt="Two labels: 'Hi There!' and 'Another label'"
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
*
* @author Sami Shaio
* @since JDK1.0
......
......@@ -94,7 +94,7 @@ import java.beans.ConstructorProperties;
* of the three cycle methods:
* <p>
* <center>
* <img src = "doc-files/LinearGradientPaint.png">
* <img src = "doc-files/LinearGradientPaint.png" alt="LinearGradientPaint">
* </center>
*
* @see java.awt.Paint
......
......@@ -61,7 +61,7 @@ import javax.accessibility.*;
* scrolling list:
* <p>
* <img src="doc-files/List-1.gif"
* alt="Shows a list containing: Venus, Earth, JavaSoft, and Mars. Javasoft is selected." ALIGN=center HSPACE=10 VSPACE=7>
* alt="Shows a list containing: Venus, Earth, JavaSoft, and Mars. Javasoft is selected." style="float:center; margin: 7px 10px;">
* <p>
* If the List allows multiple selections, then clicking on
* an item that is already selected deselects it. In the preceding
......
......@@ -45,7 +45,7 @@ import javax.accessibility.*;
* <img src="doc-files/MenuBar-1.gif"
* alt="Diagram of MenuBar containing 2 menus: Examples and Options.
* Examples menu is expanded showing items: Basic, Simple, Check, and More Examples."
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* A menu bar handles keyboard shortcuts for menu items, passing them
* along to its child menus.
......
......@@ -42,8 +42,8 @@ import sun.awt.AWTAccessor;
* <p>
* This picture of a menu bar shows five menu items:
* <IMG SRC="doc-files/MenuBar-1.gif" alt="The following text describes this graphic."
* ALIGN=CENTER HSPACE=10 VSPACE=7>
* <br CLEAR=LEFT>
* style="float:center; margin: 7px 10px;">
* <br style="clear:left;">
* The first two items are simple menu items, labeled
* <code>"Basic"</code> and <code>"Simple"</code>.
* Following these two items is a separator, which is itself
......
......@@ -80,14 +80,14 @@ import java.beans.ConstructorProperties;
* from the focus point. The following figure shows that the distance AB
* is equal to the distance BC, and the distance AD is equal to the distance DE.
* <center>
* <img src = "doc-files/RadialGradientPaint-3.png">
* <img src = "doc-files/RadialGradientPaint-3.png" alt="RadialGradientPaint-3">
* </center>
* If the gradient and graphics rendering transforms are uniformly scaled and
* the user sets the focus so that it coincides with the center of the circle,
* the gradient color proportions are equal for any line drawn from the center.
* The following figure shows the distances AB, BC, AD, and DE. They are all equal.
* <center>
* <img src = "doc-files/RadialGradientPaint-4.png">
* <img src = "doc-files/RadialGradientPaint-4.png" alt="RadialGradientPaint-4">
* </center>
* Note that some minor variations in distances may occur due to sampling at
* the granularity of a pixel.
......@@ -117,7 +117,7 @@ import java.beans.ConstructorProperties;
* (centered) focus for each of the three cycle methods:
* <p>
* <center>
* <img src = "doc-files/RadialGradientPaint-1.png">
* <img src = "doc-files/RadialGradientPaint-1.png" alt="RadialGradientPaint-1">
* </center>
*
* <p>
......@@ -141,7 +141,7 @@ import java.beans.ConstructorProperties;
* focus for each of the three cycle methods:
* <p>
* <center>
* <img src = "doc-files/RadialGradientPaint-2.png">
* <img src = "doc-files/RadialGradientPaint-2.png" alt="RadialGradientPaint-2">
* </center>
*
* @see java.awt.Paint
......
......@@ -42,7 +42,7 @@ import javax.accessibility.*;
* the red, green, and blue components of a color:
* <p>
* <img src="doc-files/Scrollbar-1.gif" alt="Image shows 3 vertical sliders, side-by-side."
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* Each scroll bar in this example could be created with
* code similar to the following:
......@@ -60,7 +60,7 @@ import javax.accessibility.*;
* <p>
* <img src="doc-files/Scrollbar-2.gif"
* alt="Image shows horizontal slider with starting range of 0 and ending range of 300. The slider thumb is labeled 60."
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* The value range represented by the bubble in this example
* is the <em>visible amount</em>. The horizontal scroll bar
......@@ -295,7 +295,7 @@ public class Scrollbar extends Component implements Adjustable, Accessible {
* Constructs a new vertical scroll bar.
* The default properties of the scroll bar are listed in
* the following table:
* <p> </p>
* <p>
* <table border=1 summary="Scrollbar default properties">
* <tr>
* <th>Property</th>
......
......@@ -361,7 +361,7 @@ public class SystemTray {
/**
* Adds a {@code PropertyChangeListener} to the list of listeners for the
* specific property. The following properties are currently supported:
* <p> </p>
* <p>
* <table border=1 summary="SystemTray properties">
* <tr>
* <th>Property</th>
......@@ -384,7 +384,7 @@ public class SystemTray {
* The property is accessed by the {@link #getSystemTray} method.</td>
* </tr>
* </table>
* <p> </p>
* <p>
* The {@code listener} listens to property changes only in this context.
* <p>
* If {@code listener} is {@code null}, no exception is thrown
......
......@@ -42,7 +42,7 @@ import javax.accessibility.*;
* The following image shows the appearance of a text area:
* <p>
* <img src="doc-files/TextArea-1.gif" alt="A TextArea showing the word 'Hello!'"
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* This text area could be created by the following line of code:
* <p>
......
......@@ -42,7 +42,7 @@ import javax.accessibility.*;
* display the predefined text <code>"Hello"</code>.
* <p>
* <img src="doc-files/TextField-1.gif" alt="The preceding text describes this image."
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* Here is the code that produces these four text fields:
* <p>
......
......@@ -85,7 +85,7 @@ import sun.util.logging.PlatformLogger;
* <p>
* <img src="doc-files/MultiScreen.gif"
* alt="Diagram shows virtual device containing 4 physical screens. Primary physical screen shows coords (0,0), other screen shows (-80,-100)."
* ALIGN=center HSPACE=10 VSPACE=7>
* style="float:center; margin: 7px 10px;">
* <p>
* In such an environment, when calling {@code setLocation},
* you must pass a virtual coordinate to this method. Similarly,
......
......@@ -97,10 +97,10 @@ import java.util.HashMap;
* <h4>Summary of attributes</h4>
* <p>
* <font size="-1">
* <table align="center" border="0" cellspacing="0" cellpadding="2" width="%95"
* <table style="float:center" border="0" cellspacing="0" cellpadding="2" width="%95"
* summary="Key, value type, principal constants, and default value
* behavior of all TextAttributes">
* <tr bgcolor="#ccccff">
* <tr style="background-color:#ccccff">
* <th valign="TOP" align="CENTER">Key</th>
* <th valign="TOP" align="CENTER">Value Type</th>
* <th valign="TOP" align="CENTER">Principal Constants</th>
......@@ -115,7 +115,7 @@ import java.util.HashMap;
</td>
* <td valign="TOP">"Default" (use platform default)</td>
* </tr>
* <tr bgcolor="#eeeeff">
* <tr style="background-color:#eeeeff">
* <td valign="TOP">{@link #WEIGHT}</td>
* <td valign="TOP">Number</td>
* <td valign="TOP">WEIGHT_REGULAR, WEIGHT_BOLD</td>
......@@ -127,7 +127,7 @@ import java.util.HashMap;
* <td valign="TOP">WIDTH_CONDENSED, WIDTH_REGULAR,<br>WIDTH_EXTENDED</td>
* <td valign="TOP">WIDTH_REGULAR</td>
* </tr>
* <tr bgcolor="#eeeeff">
* <tr style="background-color:#eeeeff">
* <td valign="TOP">{@link #POSTURE}</td>
* <td valign="TOP">Number</td>
* <td valign="TOP">POSTURE_REGULAR, POSTURE_OBLIQUE</td>
......@@ -139,7 +139,7 @@ import java.util.HashMap;
* <td valign="TOP">none</td>
* <td valign="TOP">12.0</td>
* </tr>
* <tr bgcolor="#eeeeff">
* <tr style="background-color:#eeeeff">
* <td valign="TOP">{@link #TRANSFORM}</td>
* <td valign="TOP">{@link TransformAttribute}</td>
* <td valign="TOP">See TransformAttribute {@link TransformAttribute#IDENTITY IDENTITY}</td>
......@@ -151,7 +151,7 @@ import java.util.HashMap;
* <td valign="TOP">SUPERSCRIPT_SUPER, SUPERSCRIPT_SUB</td>
* <td valign="TOP">0 (use the standard glyphs and metrics)</td>
* </tr>
* <tr bgcolor="#eeeeff">
* <tr style="background-color:#eeeeff">
* <td valign="TOP">{@link #FONT}</td>
* <td valign="TOP">{@link java.awt.Font}</td>
* <td valign="TOP">none</td>
......@@ -163,7 +163,7 @@ import java.util.HashMap;
* <td valign="TOP">none</td>
* <td valign="TOP">null (draw text using font glyphs)</td>
* </tr>
* <tr bgcolor="#eeeeff">
* <tr style="background-color:#eeeeff">
* <td valign="TOP">{@link #FOREGROUND}</td>
* <td valign="TOP">{@link java.awt.Paint}</td>
* <td valign="TOP">none</td>
......@@ -175,7 +175,7 @@ import java.util.HashMap;
* <td valign="TOP">none</td>
* <td valign="TOP">null (do not render background)</td>
* </tr>
* <tr bgcolor="#eeeeff">
* <tr style="background-color:#eeeeff">
* <td valign="TOP">{@link #UNDERLINE}</td>
* <td valign="TOP">Integer</td>
* <td valign="TOP">UNDERLINE_ON</td>
......@@ -187,7 +187,7 @@ import java.util.HashMap;
* <td valign="TOP">STRIKETHROUGH_ON</td>
* <td valign="TOP">false (do not render strikethrough)</td>
* </tr>
* <tr bgcolor="#eeeeff">
* <tr style="background-color:#eeeeff">
* <td valign="TOP">{@link #RUN_DIRECTION}</td>
* <td valign="TOP">Boolean</td>
* <td valign="TOP">RUN_DIRECTION_LTR<br>RUN_DIRECTION_RTL</td>
......@@ -199,7 +199,7 @@ import java.util.HashMap;
* <td valign="TOP">none</td>
* <td valign="TOP">0 (use base line direction)</td>
* </tr>
* <tr bgcolor="#eeeeff">
* <tr style="background-color:#eeeeff">
* <td valign="TOP">{@link #JUSTIFICATION}</td>
* <td valign="TOP">Number</td>
* <td valign="TOP">JUSTIFICATION_FULL</td>
......@@ -211,7 +211,7 @@ import java.util.HashMap;
* <td valign="TOP">(see class)</td>
* <td valign="TOP">null (do not apply input highlighting)</td>
* </tr>
* <tr bgcolor="#eeeeff">
* <tr style="background-color:#eeeeff">
* <td valign="TOP">{@link #INPUT_METHOD_UNDERLINE}</td>
* <td valign="TOP">Integer</td>
* <td valign="TOP">UNDERLINE_LOW_ONE_PIXEL,<br>UNDERLINE_LOW_TWO_PIXEL</td>
......@@ -223,7 +223,7 @@ import java.util.HashMap;
* <td valign="TOP">SWAP_COLORS_ON</td>
* <td valign="TOP">false (do not swap colors)</td>
* </tr>
* <tr bgcolor="#eeeeff">
* <tr style="background-color:#eeeeff">
* <td valign="TOP">{@link #NUMERIC_SHAPING}</td>
* <td valign="TOP">{@link java.awt.font.NumericShaper}</td>
* <td valign="TOP">none</td>
......@@ -235,7 +235,7 @@ import java.util.HashMap;
* <td valign="TOP">KERNING_ON</td>
* <td valign="TOP">0 (do not request kerning)</td>
* </tr>
* <tr bgcolor="#eeeeff">
* <tr style="background-color:#eeeeff">
* <td valign="TOP">{@link #LIGATURES}</td>
* <td valign="TOP">Integer</td>
* <td valign="TOP">LIGATURES_ON</td>
......
......@@ -47,7 +47,7 @@ import java.beans.ConstructorProperties;
* [ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ]
* </pre>
* <p>
* <a name="quadrantapproximation"><h4>Handling 90-Degree Rotations</h4></a>
* <a name="quadrantapproximation"></a><h4>Handling 90-Degree Rotations</h4>
* <p>
* In some variations of the <code>rotate</code> methods in the
* <code>AffineTransform</code> class, a double-precision argument
......
......@@ -82,7 +82,7 @@ public abstract class Line2D implements Shape, Cloneable {
public float y2;
/**
* Constructs and initializes a Line with coordinates (0, 0) -> (0, 0).
* Constructs and initializes a Line with coordinates (0, 0) &rarr; (0, 0).
* @since 1.2
*/
public Float() {
......@@ -249,7 +249,7 @@ public abstract class Line2D implements Shape, Cloneable {
public double y2;
/**
* Constructs and initializes a Line with coordinates (0, 0) -> (0, 0).
* Constructs and initializes a Line with coordinates (0, 0) &rarr; (0, 0).
* @since 1.2
*/
public Double() {
......@@ -623,7 +623,7 @@ public abstract class Line2D implements Shape, Cloneable {
* specified line segment
* @param y2 the Y coordinate of the end point of the
* specified line segment
* @return <true> if this line segment and the specified line segment
* @return {@code <true>} if this line segment and the specified line segment
* intersect each other; <code>false</code> otherwise.
* @since 1.2
*/
......
......@@ -98,7 +98,7 @@ public abstract class PrinterJob {
* Calling this method is equivalent to calling
* {@link javax.print.PrintServiceLookup#lookupPrintServices(
* DocFlavor, AttributeSet)
* <code>PrintServiceLookup.lookupPrintServices()</code>}
* PrintServiceLookup.lookupPrintServices()}
* and specifying a Pageable DocFlavor.
* @return a possibly empty array of 2D print services.
* @since 1.4
......@@ -136,8 +136,8 @@ public abstract class PrinterJob {
* <code>PrinterJob</code> instances which support print services.
* Calling this method is equivalent to calling
* {@link javax.print.StreamPrintServiceFactory#lookupStreamPrintServiceFactories(DocFlavor, String)
* <code>StreamPrintServiceFactory.lookupStreamPrintServiceFactories()
* </code>} and specifying a Pageable DocFlavor.
* StreamPrintServiceFactory.lookupStreamPrintServiceFactories()
* } and specifying a Pageable DocFlavor.
*
* @param mimeType the required output format, or null to mean any format.
* @return a possibly empty array of 2D stream print service factories.
......@@ -155,7 +155,7 @@ public abstract class PrinterJob {
/**
* A <code>PrinterJob</code> object should be created using the
* static {@link #getPrinterJob() <code>getPrinterJob</code>} method.
* static {@link #getPrinterJob() getPrinterJob} method.
*/
public PrinterJob() {
}
......
......@@ -65,8 +65,8 @@ import javax.print.attribute.DocAttributeSet;
* representation object "consumes" the print data as the caller obtains the
* print data, such as a print data representation object which is a stream.
* Once the Print Job has called {@link #getPrintData()
* <CODE>getPrintData()</CODE>} and obtained the stream, any further calls to
* {@link #getPrintData() <CODE>getPrintData()</CODE>} will return the same
* getPrintData()} and obtained the stream, any further calls to
* {@link #getPrintData() getPrintData()} will return the same
* stream object upon which reading may already be in progress, <I>not</I> a new
* stream object that will re-read the print data from the beginning. Specifying
* a doc object to behave this way simplifies the implementation of doc objects,
......@@ -83,7 +83,7 @@ import javax.print.attribute.DocAttributeSet;
* object is constructed. In this case the doc object might provide a "lazy"
* implementation that generates the print data representation object (and/or
* the print data) only when the Print Job calls for it (when the Print Job
* calls the {@link #getPrintData() <CODE>getPrintData()</CODE>} method).
* calls the {@link #getPrintData() getPrintData()} method).
* <P>
* There is no restriction on the number of client threads that may be
* simultaneously accessing the same doc. Therefore, all implementations of
......
......@@ -53,7 +53,7 @@ import java.io.Serializable;
* <LI>
* <B>Representation class name.</B> This specifies the fully-qualified name of
* the class of the object from which the actual print data comes, as returned
* by the {@link java.lang.Class#getName() <CODE>Class.getName()</CODE>} method.
* by the {@link java.lang.Class#getName() Class.getName()} method.
* (Thus the class name for <CODE>byte[]</CODE> is <CODE>"[B"</CODE>, for
* <CODE>char[]</CODE> it is <CODE>"[C"</CODE>.)
* </UL>
......@@ -174,7 +174,7 @@ import java.io.Serializable;
* platform for data (eg files) stored in that platform's encoding.
* A CharSet which corresponds to this and is suitable for use in a
* mime-type for a DocFlavor can be obtained
* from {@link DocFlavor#hostEncoding <CODE>DocFlavor.hostEncoding</CODE>}
* from {@link DocFlavor#hostEncoding DocFlavor.hostEncoding}
* This may not always be the primary IANA name but is guaranteed to be
* understood by this VM.
* For common flavors, the pre-defined *HOST DocFlavors may be used.
......@@ -669,7 +669,7 @@ public class DocFlavor implements Serializable, Cloneable {
/**
* Doc flavor with MIME type = <CODE>"text/plain"</CODE>,
* encoded in the host platform encoding.
* See {@link DocFlavor#hostEncoding <CODE>hostEncoding</CODE>}
* See {@link DocFlavor#hostEncoding hostEncoding}
* Print data representation class name =
* <CODE>"[B"</CODE> (byte array).
*/
......@@ -728,7 +728,7 @@ public class DocFlavor implements Serializable, Cloneable {
/**
* Doc flavor with MIME type = <CODE>"text/html"</CODE>,
* encoded in the host platform encoding.
* See {@link DocFlavor#hostEncoding <CODE>hostEncoding</CODE>}
* See {@link DocFlavor#hostEncoding hostEncoding}
* Print data representation class name =
* <CODE>"[B"</CODE> (byte array).
*/
......@@ -838,7 +838,7 @@ public class DocFlavor implements Serializable, Cloneable {
/**
* Class DocFlavor.INPUT_STREAM provides predefined static constant
* DocFlavor objects for example doc flavors using a byte stream ({@link
* java.io.InputStream <CODE>java.io.InputStream</CODE>}) as the print
* java.io.InputStream java.io.InputStream}) as the print
* data representation class.
* <P>
*
......@@ -868,7 +868,7 @@ public class DocFlavor implements Serializable, Cloneable {
/**
* Doc flavor with MIME type = <CODE>"text/plain"</CODE>,
* encoded in the host platform encoding.
* See {@link DocFlavor#hostEncoding <CODE>hostEncoding</CODE>}
* See {@link DocFlavor#hostEncoding hostEncoding}
* Print data representation class name =
* <CODE>"java.io.InputStream"</CODE> (byte stream).
*/
......@@ -925,7 +925,7 @@ public class DocFlavor implements Serializable, Cloneable {
/**
* Doc flavor with MIME type = <CODE>"text/html"</CODE>,
* encoded in the host platform encoding.
* See {@link DocFlavor#hostEncoding <CODE>hostEncoding</CODE>}
* See {@link DocFlavor#hostEncoding hostEncoding}
* Print data representation class name =
* <CODE>"java.io.InputStream"</CODE> (byte stream).
*/
......@@ -1041,7 +1041,7 @@ public class DocFlavor implements Serializable, Cloneable {
* Class DocFlavor.URL provides predefined static constant DocFlavor
* objects.
* For example doc flavors using a Uniform Resource Locator ({@link
* java.net.URL <CODE>java.net.URL</CODE>}) as the print data
* java.net.URL java.net.URL}) as the print data
* representation class.
* <P>
*
......@@ -1068,7 +1068,7 @@ public class DocFlavor implements Serializable, Cloneable {
/**
* Doc flavor with MIME type = <CODE>"text/plain"</CODE>,
* encoded in the host platform encoding.
* See {@link DocFlavor#hostEncoding <CODE>hostEncoding</CODE>}
* See {@link DocFlavor#hostEncoding hostEncoding}
* Print data representation class name =
* <CODE>"java.net.URL"</CODE> (byte stream).
*/
......@@ -1125,7 +1125,7 @@ public class DocFlavor implements Serializable, Cloneable {
/**
* Doc flavor with MIME type = <CODE>"text/html"</CODE>,
* encoded in the host platform encoding.
* See {@link DocFlavor#hostEncoding <CODE>hostEncoding</CODE>}
* See {@link DocFlavor#hostEncoding hostEncoding}
* Print data representation class name =
* <CODE>"java.net.URL"</CODE> (byte stream).
*/
......@@ -1280,7 +1280,7 @@ public class DocFlavor implements Serializable, Cloneable {
/**
* Class DocFlavor.STRING provides predefined static constant DocFlavor
* objects for example doc flavors using a string ({@link java.lang.String
* <CODE>java.lang.String</CODE>}) as the print data representation class.
* java.lang.String}) as the print data representation class.
* As such, the character set is Unicode.
* <P>
*
......@@ -1328,7 +1328,7 @@ public class DocFlavor implements Serializable, Cloneable {
/**
* Class DocFlavor.READER provides predefined static constant DocFlavor
* objects for example doc flavors using a character stream ({@link
* java.io.Reader <CODE>java.io.Reader</CODE>}) as the print data
* java.io.Reader java.io.Reader}) as the print data
* representation class. As such, the character set is Unicode.
* <P>
*
......
......@@ -39,9 +39,9 @@ import java.io.IOException;
* docs. A multidoc object is like a node in the linked list, containing the
* current doc in the list and a pointer to the next node (multidoc) in the
* list. The Print Job can call the multidoc's {@link #getDoc()
* <CODE>getDoc()</CODE>} method to get the current doc. When it's ready to go
* getDoc()} method to get the current doc. When it's ready to go
* on to the next doc, the Print Job can call the multidoc's {@link #next()
* <CODE>next()</CODE>} method to get the next multidoc, which contains the
* next()} method to get the next multidoc, which contains the
* next doc. So Print Job code for accessing a multidoc might look like this:
* <PRE>
* void processMultiDoc(MultiDoc theMultiDoc) {
......@@ -88,12 +88,12 @@ import java.io.IOException;
* multiple docs to a Print Job, every Print Service proxy that supports
* multidoc print jobs is required to access a MultiDoc object using the
* interleaved pattern. That is, given a MultiDoc object, the print service
* proxy will call {@link #getDoc() <CODE>getDoc()</CODE>} one or more times
* proxy will call {@link #getDoc() getDoc()} one or more times
* until it successfully obtains the current Doc object. The print service proxy
* will then obtain the current doc's print data, not proceeding until all the
* print data is obtained or an unrecoverable error occurs. If it is able to
* continue, the print service proxy will then call {@link #next()
* <CODE>next()</CODE>} one or more times until it successfully obtains either
* next()} one or more times until it successfully obtains either
* the next MultiDoc object or an indication that there are no more. An
* implementation of interface MultiDoc can assume the print service proxy will
* follow this interleaved pattern; for any other pattern of usage, the MultiDoc
......
......@@ -42,16 +42,16 @@ import javax.print.attribute.PrintJobAttribute;
* Standard Finishings values are:
* <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100% SUMMARY="layout">
* <TR>
* <TD WIDTH=10%>
* <TD STYLE="WIDTH:10%">
* &nbsp;
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #NONE NONE}
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #STAPLE STAPLE}
* </TD>
* <TD WIDTH=36%>
* <TD STYLE="WIDTH:36%">
* {@link #EDGE_STITCH EDGE_STITCH}
* </TD>
* </TR>
......@@ -78,70 +78,70 @@ import javax.print.attribute.PrintJobAttribute;
* corner or an edge as if the document were a portrait document:
* <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100% SUMMARY="layout">
* <TR>
* <TD WIDTH=10%>
* <TD STYLE="WIDTH:10%">
* &nbsp;
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #STAPLE_TOP_LEFT STAPLE_TOP_LEFT}
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #EDGE_STITCH_LEFT EDGE_STITCH_LEFT}
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #STAPLE_DUAL_LEFT STAPLE_DUAL_LEFT}
* </TD>
* <TD WIDTH=9%>
* <TD STYLE="WIDTH:9%">
* &nbsp;
* </TD>
* </TR>
* <TR>
* <TD WIDTH=10%>
* <TD STYLE="WIDTH:10%">
* &nbsp;
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #STAPLE_BOTTOM_LEFT STAPLE_BOTTOM_LEFT}
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #EDGE_STITCH_TOP EDGE_STITCH_TOP}
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #STAPLE_DUAL_TOP STAPLE_DUAL_TOP}
* </TD>
* <TD WIDTH=9%>
* <TD STYLE="WIDTH:9%">
* &nbsp;
* </TD>
* </TR>
* <TR>
* <TD WIDTH=10%>
* <TD STYLE="WIDTH:10%">
* &nbsp;
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #STAPLE_TOP_RIGHT STAPLE_TOP_RIGHT}
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #EDGE_STITCH_RIGHT EDGE_STITCH_RIGHT}
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #STAPLE_DUAL_RIGHT STAPLE_DUAL_RIGHT}
* </TD>
* <TD WIDTH=9%>
* <TD STYLE="WIDTH:9%">
* &nbsp;
* </TD>
* </TR>
* <TR>
* <TD WIDTH=10%>
* <TD STYLE="WIDTH:10%">
* &nbsp;
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #STAPLE_BOTTOM_RIGHT STAPLE_BOTTOM_RIGHT}
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #EDGE_STITCH_BOTTOM EDGE_STITCH_BOTTOM}
* </TD>
* <TD WIDTH=27%>
* <TD STYLE="WIDTH:27%">
* {@link #STAPLE_DUAL_BOTTOM STAPLE_DUAL_BOTTOM}
* </TD>
* <TD WIDTH=9%>
* <TD STYLE="WIDTH:9%">
* &nbsp;
* </TD>
* </TR>
......
......@@ -110,7 +110,7 @@ public final class JobStateReasons
* The underlying hash set's initial capacity and load factor are as
* specified in the superclass constructor {@link
* java.util.HashSet#HashSet(java.util.Collection)
* <CODE>HashSet(Collection)</CODE>}.
* HashSet(Collection)}.
*
* @param collection Collection to copy.
*
......
......@@ -56,7 +56,7 @@ import javax.print.attribute.PrintRequestAttribute;
* any specified finishings.
* <code>PrintService</code> provides the method to query the supported
* values of an attribute in a suitable context :
* See {@link javax.print.PrintService#getSupportedAttributeValues(Class,DocFlavor, AttributeSet) <code>PrintService.getSupportedAttributeValues()</code>}
* See {@link javax.print.PrintService#getSupportedAttributeValues(Class,DocFlavor, AttributeSet) PrintService.getSupportedAttributeValues()}
* <p>
* The rectangular printable area is defined thus:
* The (x,y) origin is positioned at the top-left of the paper in portrait
......@@ -153,8 +153,8 @@ public final class MediaPrintableArea
* Get the printable area as an array of 4 values in the order
* x, y, w, h. The values returned are in the given units.
* @param units
* Unit conversion factor, e.g. {@link #INCH <CODE>INCH</CODE>} or
* {@link #MM <CODE>MM</CODE>}.
* Unit conversion factor, e.g. {@link #INCH INCH} or
* {@link #MM MM}.
*
* @return printable area as array of x, y, w, h in the specified units.
*
......@@ -170,8 +170,8 @@ public final class MediaPrintableArea
* Get the x location of the origin of the printable area in the
* specified units.
* @param units
* Unit conversion factor, e.g. {@link #INCH <CODE>INCH</CODE>} or
* {@link #MM <CODE>MM</CODE>}.
* Unit conversion factor, e.g. {@link #INCH INCH} or
* {@link #MM MM}.
*
* @return x location of the origin of the printable area in the
* specified units.
......@@ -187,8 +187,8 @@ public final class MediaPrintableArea
* Get the y location of the origin of the printable area in the
* specified units.
* @param units
* Unit conversion factor, e.g. {@link #INCH <CODE>INCH</CODE>} or
* {@link #MM <CODE>MM</CODE>}.
* Unit conversion factor, e.g. {@link #INCH INCH} or
* {@link #MM MM}.
*
* @return y location of the origin of the printable area in the
* specified units.
......@@ -203,8 +203,8 @@ public final class MediaPrintableArea
/**
* Get the width of the printable area in the specified units.
* @param units
* Unit conversion factor, e.g. {@link #INCH <CODE>INCH</CODE>} or
* {@link #MM <CODE>MM</CODE>}.
* Unit conversion factor, e.g. {@link #INCH INCH} or
* {@link #MM MM}.
*
* @return width of the printable area in the specified units.
*
......@@ -218,8 +218,8 @@ public final class MediaPrintableArea
/**
* Get the height of the printable area in the specified units.
* @param units
* Unit conversion factor, e.g. {@link #INCH <CODE>INCH</CODE>} or
* {@link #MM <CODE>MM</CODE>}.
* Unit conversion factor, e.g. {@link #INCH INCH} or
* {@link #MM MM}.
*
* @return height of the printable area in the specified units.
*
......@@ -292,8 +292,8 @@ public final class MediaPrintableArea
* given units.
*
* @param units
* Unit conversion factor, e.g. {@link #INCH <CODE>INCH</CODE>} or
* {@link #MM <CODE>MM</CODE>}.
* Unit conversion factor, e.g. {@link #INCH INCH} or
* {@link #MM MM}.
* @param unitsName
* Units name string, e.g. <CODE>"in"</CODE> or <CODE>"mm"</CODE>. If
* null, no units name is appended to the result.
......
......@@ -71,7 +71,7 @@ import javax.print.attribute.PrintJobAttribute;
* <UL>
* <LI>
* <A NAME="sdfi">{@link #SINGLE_DOCUMENT
* <B><CODE>SINGLE_DOCUMENT</CODE></B>}</A>. If a print job has multiple
* <B>SINGLE_DOCUMENT</B>}</A>. If a print job has multiple
* documents -- say, the document data is called <CODE>a</CODE> and
* <CODE>b</CODE> -- then the result of processing all the document data
* (<CODE>a</CODE> and then <CODE>b</CODE>) must be treated as a single sequence
......@@ -86,7 +86,7 @@ import javax.print.attribute.PrintJobAttribute;
* <P>
* <LI>
* <A NAME="sducfi">{@link #SEPARATE_DOCUMENTS_UNCOLLATED_COPIES
* <B><CODE>SEPARATE_DOCUMENTS_UNCOLLATED_COPIES</CODE></B>}</A>. If a print job
* <B>SEPARATE_DOCUMENTS_UNCOLLATED_COPIES</B>}</A>. If a print job
* has multiple documents -- say, the document data is called <CODE>a</CODE> and
* <CODE>b</CODE> -- then the result of processing the data in each document
* instance must be treated as a single sequence of media sheets for finishing
......@@ -99,7 +99,7 @@ import javax.print.attribute.PrintJobAttribute;
* <P>
* <LI>
* <A NAME="sdccfi">{@link #SEPARATE_DOCUMENTS_COLLATED_COPIES
* <B><CODE>SEPARATE_DOCUMENTS_COLLATED_COPIES</CODE></B>}</A>. If a print job
* <B>SEPARATE_DOCUMENTS_COLLATED_COPIES</B>}</A>. If a print job
* has multiple documents -- say, the document data is called <CODE>a</CODE> and
* <CODE>b</CODE> -- then the result of processing the data in each document
* instance must be treated as a single sequence of media sheets for finishing
......@@ -112,7 +112,7 @@ import javax.print.attribute.PrintJobAttribute;
* <P>
* <LI>
* <A NAME="sdnsfi">{@link #SINGLE_DOCUMENT_NEW_SHEET
* <B><CODE>SINGLE_DOCUMENT_NEW_SHEET</CODE></B>}</A>. Same as SINGLE_DOCUMENT,
* <B>SINGLE_DOCUMENT_NEW_SHEET</B>}</A>. Same as SINGLE_DOCUMENT,
* except that the printer must ensure that the first impression of each
* document instance in the job is placed on a new media sheet. This value
* allows multiple documents to be stapled together with a single staple where
......@@ -127,7 +127,7 @@ import javax.print.attribute.PrintJobAttribute;
* next document or document copy on to a new sheet.
* <P>
* In addition, if a {@link Finishings Finishings} attribute of
* {@link Finishings#STAPLE <CODE>STAPLE</CODE>} is specified, then:
* {@link Finishings#STAPLE STAPLE} is specified, then:
* <UL>
* <LI>
* With SINGLE_DOCUMENT, documents <CODE>a</CODE> and <CODE>b</CODE> are
......
......@@ -129,7 +129,7 @@ public final class PrinterStateReasons
* Severity} mappings as the given map. The underlying hash map's initial
* capacity and load factor are as specified in the superclass constructor
* {@link java.util.HashMap#HashMap(java.util.Map)
* <CODE>HashMap(Map)</CODE>}.
* HashMap(Map)}.
*
* @param map Map to copy.
*
......
......@@ -134,7 +134,7 @@ public final class Sides extends EnumSyntax
* sides of consecutive media sheets, such that the orientation of each
* pair of print-stream pages on the medium would be correct for the
* reader as if for binding on the long edge. This imposition is also
* known as "duplex" (see {@link #DUPLEX <CODE>DUPLEX</CODE>}).
* known as "duplex" (see {@link #DUPLEX DUPLEX}).
*/
public static final Sides TWO_SIDED_LONG_EDGE = new Sides(1);
......@@ -143,19 +143,19 @@ public final class Sides extends EnumSyntax
* sides of consecutive media sheets, such that the orientation of each
* pair of print-stream pages on the medium would be correct for the
* reader as if for binding on the short edge. This imposition is also
* known as "tumble" (see {@link #TUMBLE <CODE>TUMBLE</CODE>}).
* known as "tumble" (see {@link #TUMBLE TUMBLE}).
*/
public static final Sides TWO_SIDED_SHORT_EDGE = new Sides(2);
/**
* An alias for "two sided long edge" (see {@link #TWO_SIDED_LONG_EDGE
* <CODE>TWO_SIDED_LONG_EDGE</CODE>}).
* TWO_SIDED_LONG_EDGE}).
*/
public static final Sides DUPLEX = TWO_SIDED_LONG_EDGE;
/**
* An alias for "two sided short edge" (see {@link #TWO_SIDED_SHORT_EDGE
* <CODE>TWO_SIDED_SHORT_EDGE</CODE>}).
* TWO_SIDED_SHORT_EDGE}).
*/
public static final Sides TUMBLE = TWO_SIDED_SHORT_EDGE;
......
......@@ -44,12 +44,12 @@ import javax.accessibility.*;
* <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/layeredpane.html">How to Use a Layered Pane</a>,
* a section in <em>The Java Tutorial</em>.
* <P>
* <TABLE ALIGN="RIGHT" BORDER="0" SUMMARY="layout">
* <TABLE STYLE="FLOAT:RIGHT" BORDER="0" SUMMARY="layout">
* <TR>
* <TD ALIGN="CENTER">
* <P ALIGN="CENTER"><IMG SRC="doc-files/JLayeredPane-1.gif"
* <P STYLE="TEXT-ALIGN:CENTER"><IMG SRC="doc-files/JLayeredPane-1.gif"
* alt="The following text describes this image."
* WIDTH="269" HEIGHT="264" ALIGN="BOTTOM" BORDER="0">
* WIDTH="269" HEIGHT="264" STYLE="FLOAT:BOTTOM; BORDER=0">
* </TD>
* </TR>
* </TABLE>
......
......@@ -108,16 +108,16 @@ import static javax.swing.ClientPropertyKey.PopupFactory_FORCE_HEAVYWEIGHT_POPUP
* the caller until the user's interaction is complete.
* <p>
*
* <table cellspacing=6 cellpadding=4 border=0 align=right summary="layout">
* <table cellspacing=6 cellpadding=4 border=0 style="float:right" summary="layout">
* <tr>
* <td bgcolor=#FFe0d0 rowspan=2>icon</td>
* <td bgcolor=#FFe0d0>message</td>
* <td style="background-color:#FFe0d0" rowspan=2>icon</td>
* <td style="background-color:#FFe0d0">message</td>
* </tr>
* <tr>
* <td bgcolor=#FFe0d0>input value</td>
* <td style="background-color:#FFe0d0">input value</td>
* </tr>
* <tr>
* <td bgcolor=#FFe0d0 colspan=2>option buttons</td>
* <td style="background-color:#FFe0d0" colspan=2>option buttons</td>
* </tr>
* </table>
*
......@@ -127,7 +127,7 @@ import static javax.swing.ClientPropertyKey.PopupFactory_FORCE_HEAVYWEIGHT_POPUP
* ultimately responsible for the final result. In particular, the
* look-and-feels will adjust the layout to accommodate the option pane's
* <code>ComponentOrientation</code> property.
* <br clear=all>
* <br style="clear:all">
* <p>
* <b>Parameters:</b><br>
* The parameters to these methods follow consistent patterns:
......
......@@ -54,12 +54,12 @@ import java.beans.Transient;
* a section in <em>The Java Tutorial</em>. Note that
* <code>JScrollPane</code> does not support heavyweight components.
* <p>
* <TABLE ALIGN="RIGHT" BORDER="0" SUMMARY="layout">
* <TABLE STYLE="FLOAT:RIGHT" BORDER="0" SUMMARY="layout">
* <TR>
* <TD ALIGN="CENTER">
* <P ALIGN="CENTER"><IMG SRC="doc-files/JScrollPane-1.gif"
* <P STYLE="TEXT-ALIGN:CENTER"><IMG SRC="doc-files/JScrollPane-1.gif"
* alt="The following text describes this image."
* WIDTH="256" HEIGHT="248" ALIGN="BOTTOM" BORDER="0">
* WIDTH="256" HEIGHT="248" STYLE="FLOAT:BOTTOM; BORDER:0px">
* </TD>
* </TR>
* </TABLE>
......
......@@ -207,7 +207,7 @@ public class JTabbedPane extends JComponent
}
/**
* Returns the UI object which implements the L&F for this component.
* Returns the UI object which implements the L&amp;F for this component.
*
* @return a <code>TabbedPaneUI</code> object
* @see #setUI
......@@ -217,7 +217,7 @@ public class JTabbedPane extends JComponent
}
/**
* Sets the UI object which implements the L&F for this component.
* Sets the UI object which implements the L&amp;F for this component.
*
* @param ui the new UI object
* @see UIDefaults#getUI
......@@ -250,7 +250,7 @@ public class JTabbedPane extends JComponent
/**
* Returns the name of the UI class that implements the
* L&F for this component.
* L&amp;F for this component.
*
* @return the string "TabbedPaneUI"
* @see JComponent#getUIClassID
......@@ -576,7 +576,7 @@ public class JTabbedPane extends JComponent
*
* @param index the index to be selected
* @exception IndexOutOfBoundsException if index is out of range
* (index < -1 || index >= tab count)
* {@code (index < -1 || index >= tab count)}
*
* @see #getSelectedIndex
* @see SingleSelectionModel#setSelectedIndex
......@@ -924,7 +924,7 @@ public class JTabbedPane extends JComponent
* if added to other containers.
* @param index the index of the tab to be removed
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #addTab
* @see #insertTab
......@@ -1043,7 +1043,7 @@ public class JTabbedPane extends JComponent
* @param index the index of the component to remove from the
* <code>tabbedpane</code>
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
* @see #addTab
* @see #removeTabAt
*/
......@@ -1105,7 +1105,7 @@ public class JTabbedPane extends JComponent
* @param index the index of the item being queried
* @return the title at <code>index</code>
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
* @see #setTitleAt
*/
public String getTitleAt(int index) {
......@@ -1118,7 +1118,7 @@ public class JTabbedPane extends JComponent
* @param index the index of the item being queried
* @return the icon at <code>index</code>
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #setIconAt
*/
......@@ -1137,7 +1137,7 @@ public class JTabbedPane extends JComponent
* @param index the index of the item being queried
* @return the icon at <code>index</code>
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #setDisabledIconAt
*/
......@@ -1155,7 +1155,7 @@ public class JTabbedPane extends JComponent
* @param index the index of the item being queried
* @return a string containing the tool tip text at <code>index</code>
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #setToolTipTextAt
* @since 1.3
......@@ -1171,7 +1171,7 @@ public class JTabbedPane extends JComponent
* @return the <code>Color</code> of the tab background at
* <code>index</code>
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #setBackgroundAt
*/
......@@ -1186,7 +1186,7 @@ public class JTabbedPane extends JComponent
* @return the <code>Color</code> of the tab foreground at
* <code>index</code>
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #setForegroundAt
*/
......@@ -1202,7 +1202,7 @@ public class JTabbedPane extends JComponent
* @return true if the tab at <code>index</code> is enabled;
* false otherwise
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #setEnabledAt
*/
......@@ -1216,7 +1216,7 @@ public class JTabbedPane extends JComponent
* @param index the index of the item being queried
* @return the <code>Component</code> at <code>index</code>
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #setComponentAt
*/
......@@ -1281,7 +1281,7 @@ public class JTabbedPane extends JComponent
* <code>index</code> is not currently visible in the UI,
* or if there is no UI set on this <code>tabbedpane</code>
* @exception IndexOutOfBoundsException if index is out of range
* (index &lt; 0 || index &gt;= tab count)
* {@code (index < 0 || index >= tab count)}
*/
public Rectangle getBoundsAt(int index) {
checkIndex(index);
......@@ -1303,7 +1303,7 @@ public class JTabbedPane extends JComponent
* @param index the tab index where the title should be set
* @param title the title to be displayed in the tab
* @exception IndexOutOfBoundsException if index is out of range
* (index &lt; 0 || index &gt;= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #getTitleAt
* @see #setTabComponentAt
......@@ -1345,7 +1345,7 @@ public class JTabbedPane extends JComponent
* @param index the tab index where the icon should be set
* @param icon the icon to be displayed in the tab
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #setDisabledIconAt
* @see #getIconAt
......@@ -1389,7 +1389,7 @@ public class JTabbedPane extends JComponent
* @param index the tab index where the disabled icon should be set
* @param disabledIcon the icon to be displayed in the tab when disabled
* @exception IndexOutOfBoundsException if index is out of range
* (index &lt; 0 || index &gt;= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #getDisabledIconAt
* @beaninfo
......@@ -1414,7 +1414,7 @@ public class JTabbedPane extends JComponent
* @param index the tab index where the tooltip text should be set
* @param toolTipText the tooltip text to be displayed for the tab
* @exception IndexOutOfBoundsException if index is out of range
* (index &lt; 0 || index &gt;= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #getToolTipTextAt
* @beaninfo
......@@ -1443,14 +1443,14 @@ public class JTabbedPane extends JComponent
* which can be <code>null</code>, in which case the tab's background color
* will default to the background color of the <code>tabbedpane</code>.
* An internal exception is raised if there is no tab at that index.
* <p/>
* <p>
* It is up to the look and feel to honor this property, some may
* choose to ignore it.
*
* @param index the tab index where the background should be set
* @param background the color to be displayed in the tab's background
* @exception IndexOutOfBoundsException if index is out of range
* (index &lt; 0 || index &gt;= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #getBackgroundAt
* @beaninfo
......@@ -1476,14 +1476,14 @@ public class JTabbedPane extends JComponent
* <code>null</code>, in which case the tab's foreground color
* will default to the foreground color of this <code>tabbedpane</code>.
* An internal exception is raised if there is no tab at that index.
* <p/>
* <p>
* It is up to the look and feel to honor this property, some may
* choose to ignore it.
*
* @param index the tab index where the foreground should be set
* @param foreground the color to be displayed as the tab's foreground
* @exception IndexOutOfBoundsException if index is out of range
* (index &lt; 0 || index &gt;= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #getForegroundAt
* @beaninfo
......@@ -1510,7 +1510,7 @@ public class JTabbedPane extends JComponent
* @param index the tab index which should be enabled/disabled
* @param enabled whether or not the tab should be enabled
* @exception IndexOutOfBoundsException if index is out of range
* (index &lt; 0 || index &gt;= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #isEnabledAt
*/
......@@ -1530,7 +1530,7 @@ public class JTabbedPane extends JComponent
* @param index the tab index where this component is being placed
* @param component the component for the tab
* @exception IndexOutOfBoundsException if index is out of range
* (index &lt; 0 || index &gt;= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #getComponentAt
* @beaninfo
......@@ -1605,8 +1605,8 @@ public class JTabbedPane extends JComponent
* @param tabIndex the index of the tab that the mnemonic refers to
* @param mnemonicIndex index into the <code>String</code> to underline
* @exception IndexOutOfBoundsException if <code>tabIndex</code> is
* out of range (<code>tabIndex < 0 || tabIndex >= tab
* count</code>)
* out of range ({@code tabIndex < 0 || tabIndex >= tab
* count})
* @exception IllegalArgumentException will be thrown if
* <code>mnemonicIndex</code> is &gt;= length of the tab
* title , or &lt; -1
......@@ -1649,7 +1649,7 @@ public class JTabbedPane extends JComponent
* @param tabIndex the index of the tab that the mnemonic refers to
* @param mnemonic the key code which represents the mnemonic
* @exception IndexOutOfBoundsException if <code>tabIndex</code> is out
* of range (<code>tabIndex < 0 || tabIndex >= tab count</code>)
* of range ({@code tabIndex < 0 || tabIndex >= tab count})
* @see #getMnemonicAt(int)
* @see #setDisplayedMnemonicIndexAt(int,int)
*
......@@ -2354,7 +2354,7 @@ public class JTabbedPane extends JComponent
* @param component the component to render the title for the
* specified tab
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
* @exception IllegalArgumentException if component has already been
* added to this <code>JTabbedPane</code>
*
......@@ -2386,7 +2386,7 @@ public class JTabbedPane extends JComponent
* @param index the index of the item being queried
* @return the tab component at <code>index</code>
* @exception IndexOutOfBoundsException if index is out of range
* (index < 0 || index >= tab count)
* {@code (index < 0 || index >= tab count)}
*
* @see #setTabComponentAt
* @since 1.6
......
......@@ -91,7 +91,7 @@ import java.util.StringTokenizer;
* to provide a specific set of defaults. These are documented in the
* classes that require the specific default.
*
* <h3><a name="#defaultRecommendation">ComponentUIs and defaults</a></h2>
* <h3><a name="#defaultRecommendation">ComponentUIs and defaults</a></h3>
*
* All {@code ComponentUIs} typically need to set various properties
* on the {@code JComponent} the {@code ComponentUI} is providing the
......@@ -590,7 +590,7 @@ public abstract class LookAndFeel
* Distinct look and feels should have different names, e.g.
* a subclass of MotifLookAndFeel that changes the way a few components
* are rendered should be called "CDE/Motif My Way"; something
* that would be useful to a user trying to select a L&F from a list
* that would be useful to a user trying to select a L&amp;F from a list
* of names.
*
* @return short identifier for the look and feel
......
......@@ -293,8 +293,8 @@ public class MetalLookAndFeel extends BasicLookAndFeel
* <table border="1" cellpadding="1" cellspacing="0"
* summary="Metal's system color mapping">
* <tr valign="top" align="left">
* <th bgcolor="#CCCCFF" align="left">Key
* <th bgcolor="#CCCCFF" align="left">Value
* <th style="background-color:#CCCCFF" align="left">Key
* <th style="background-color:#CCCCFF" align="left">Value
* <tr valign="top" align="left">
* <td>"desktop"
* <td>{@code theme.getDesktopColor()}
......
......@@ -46,7 +46,7 @@ import javax.swing.plaf.basic.*;
*
* <table summary="Descriptions of supported hints: Angled, Horizontal, and None">
* <tr>
* <th><p align="left">Angled</p></th>
* <th><p style="text-align:left">Angled</p></th>
* <td>A line is drawn connecting the child to the parent. For handling
* of the root node refer to
* {@link javax.swing.JTree#setRootVisible} and
......@@ -54,11 +54,11 @@ import javax.swing.plaf.basic.*;
* </td>
* </tr>
* <tr>
* <th><p align="left">Horizontal</p></th>
* <th><p style="text-align:left">Horizontal</p></th>
* <td>A horizontal line is drawn dividing the children of the root node.</td>
* </tr>
* <tr>
* <th><p align="left">None</p></th>
* <th><p style="text-align:left">None</p></th>
* <td>Do not draw any visual indication between nodes.</td>
* </tr>
* </table>
......
......@@ -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,
......
......@@ -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>
......
......@@ -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">
......
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册