suggested clarification

Alan Snyder javalists at cbfiddle.com
Sun Aug 4 19:38:09 UTC 2024


The spec for javax.swing.text.View.viewToModel(float x, float y, Shape a, Position.Bias[] biasReturn) says:

"The biasReturn argument will be filled in to indicate that the point given is closer to the next character in the model or the previous character in the model.”

It looks like a non-null value is always stored and in the case where the point is equidistant the value is Forward.
One could read the spec and not rule out a null being stored in the equidistant case.



More information about the client-libs-dev mailing list