< prev index next >
src/java.desktop/share/classes/javax/swing/text/ComponentView.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -83,19 +83,22 @@
* this view. This will be called when it has
* been determined that a new component is needed.
* This would result from a call to setParent or
* as a result of being notified that attributes
* have changed.
+ * @return the component that is associated with
+ * this view
*/
protected Component createComponent() {
AttributeSet attr = getElement().getAttributes();
Component comp = StyleConstants.getComponent(attr);
return comp;
}
/**
* Fetch the component associated with the view.
+ * @return the component associated with the view
*/
public final Component getComponent() {
return createdC;
}
< prev index next >