Skip to content

Commit bc828c8

Browse files
committed
6955128: Spec for javax.swing.plaf.basic.BasicTextUI.getVisibleEditorRect contains inappropriate wording
Reviewed-by: aivanov, prr, dnguyen, abhiscxk, tr
1 parent 917d018 commit bc828c8

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,14 +1029,17 @@ public Dimension getMaximumSize(JComponent c) {
10291029

10301030

10311031
/**
1032-
* Gets the allocation to give the root View. Due
1033-
* to an unfortunate set of historical events this
1034-
* method is inappropriately named. The Rectangle
1035-
* returned has nothing to do with visibility.
1032+
* Gets the allocation (that is the allocated size) for the root view.
1033+
* <p>
1034+
* The returned rectangle is unrelated to visibility.
1035+
* It is used to set the size of the root view.
1036+
* <p>
10361037
* The component must have a non-zero positive size for
10371038
* this translation to be computed.
10381039
*
10391040
* @return the bounding box for the root view
1041+
* @see View#paint
1042+
* @see View#setSize
10401043
*/
10411044
protected Rectangle getVisibleEditorRect() {
10421045
Rectangle alloc = editor.getBounds();

0 commit comments

Comments
 (0)