<Swing Dev> Text rendering/layout problem in Swing

Roman Kennke roman at kennke.org
Fri May 7 22:24:07 UTC 2010


> For multiline text components this needs to be fm.getAscent() + numLines
> * fm.getHeight() + fm.getDescent().

That should have been fm.getAscent() + (numLines - 1) * fm.getHeight() +
fm.getDescent() instead.

/Roman





More information about the swing-dev mailing list