In TextArea.java, a line seems to be missing from the javadoc comment
for constructors that take a string as an argument.
Here is an example:
/**
* Constructs a new text area with the specified text.
* This text area is created with scrollbar visibility equal to
* {@link #SCROLLBARS_BOTH}, so both vertical and horizontal
* scrollbars will be visible for this text area.
* @param text the text to be displayed; if
* <code>text</code> is <code>null</code>, the empty
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
* returns true.
* @see java.awt.GraphicsEnvironment#isHeadless
*/
public TextArea(String text) throws HeadlessException {
this(text, 0, 0, SCROLLBARS_BOTH);
}
The error is in the param tag:
* @param text the text to be displayed; if
* <code>text</code> is <code>null</code>, the empty
There should be an additional line:
* string <code>""</code> will be displayed
This line is missing from several constructors.
for constructors that take a string as an argument.
Here is an example:
/**
* Constructs a new text area with the specified text.
* This text area is created with scrollbar visibility equal to
* {@link #SCROLLBARS_BOTH}, so both vertical and horizontal
* scrollbars will be visible for this text area.
* @param text the text to be displayed; if
* <code>text</code> is <code>null</code>, the empty
* @exception HeadlessException if GraphicsEnvironment.isHeadless()
* returns true.
* @see java.awt.GraphicsEnvironment#isHeadless
*/
public TextArea(String text) throws HeadlessException {
this(text, 0, 0, SCROLLBARS_BOTH);
}
The error is in the param tag:
* @param text the text to be displayed; if
* <code>text</code> is <code>null</code>, the empty
There should be an additional line:
* string <code>""</code> will be displayed
This line is missing from several constructors.