6229853: BasicTextAreaUI:create incompletely documents the possible returned View types
Reviewed-by: aivanov, prr
This commit is contained in:
parent
358ac07255
commit
c33ca0c5ed
src/java.desktop/share/classes/javax/swing/plaf/basic
@ -137,11 +137,10 @@ public class BasicTextAreaUI extends BasicTextUI {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the view for an element. Returns a WrappedPlainView or
|
||||
* PlainView.
|
||||
* Creates a view for an element.
|
||||
*
|
||||
* @param elem the element
|
||||
* @return the view
|
||||
* @return the view for the element
|
||||
*/
|
||||
public View create(Element elem) {
|
||||
Document doc = elem.getDocument();
|
||||
|
@ -83,10 +83,10 @@ public class BasicTextFieldUI extends BasicTextUI {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a view (FieldView) based on an element.
|
||||
* Creates a view for an element.
|
||||
*
|
||||
* @param elem the element
|
||||
* @return the view
|
||||
* @return the view for the element
|
||||
*/
|
||||
public View create(Element elem) {
|
||||
Document doc = elem.getDocument();
|
||||
|
Loading…
x
Reference in New Issue
Block a user