File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
src/java.desktop/share/classes/javax/swing/plaf/basic Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments